Mercurial > libavformat.hg
diff os_support.h @ 3994:4d5d9ac28e21 libavformat
Only special-case absolute DOS paths on systems that support them.
author | ramiro |
---|---|
date | Fri, 10 Oct 2008 16:59:37 +0000 |
parents | d3db5ee44053 |
children | dcdf236c9909 |
line wrap: on
line diff
--- a/os_support.h Wed Oct 08 20:55:22 2008 +0000 +++ b/os_support.h Fri Oct 10 16:59:37 2008 +0000 @@ -32,6 +32,15 @@ # define lseek(f,p,w) _lseeki64((f), (p), (w)) #endif +static inline int is_dos_path(const char *path) +{ +#ifdef HAVE_DOS_PATHS + if (path[0] && path[1] == ':') + return 1; +#endif + return 0; +} + #ifdef __BEOS__ # include <sys/socket.h> # include <netinet/in.h>