[FFmpeg-devel] [PATCH] Set systems that should support DOS paths in configure

Måns Rullgård mans
Sat Oct 4 00:58:19 CEST 2008


"Ramiro Polla" <ramiro.polla at gmail.com> writes:

> Hi,
>
> $subj
>
> Ramiro Polla
>
> Index: libavformat/os_support.h
> ===================================================================
> --- libavformat/os_support.h	(revision 15464)
> +++ libavformat/os_support.h	(working copy)
> @@ -35,6 +35,12 @@
>  #  define lseek(f,p,w) _lseeki64((f), (p), (w))
>  #endif
>  
> +#ifdef HAVE_DOS_PATHS
> +    #define is_dos_path(path) (path[1]==':')

This allows anything as the "drive letter", though maybe that's
considered OK.

> +#else
> +    #define is_dos_path(path) (0)

Useless ().  There are few things in programming that are sillier than
parenthesis around a single token (unless (= (language) 'Lisp)).

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list