diff options
author | Martin Storsjö <martin@martin.st> | 2012-09-13 14:26:10 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-09-13 14:56:54 +0300 |
commit | ca6b544ac9d07dcd4d151d5729f0bf52f4f8653d (patch) | |
tree | 58ac42ece4e057cd6c2bde0232e0324895c39c56 /libavformat | |
parent | 7b07fab5675a616749ba6b9d0dfd89f1b51bdb8e (diff) | |
download | ffmpeg-ca6b544ac9d07dcd4d151d5729f0bf52f4f8653d.tar.gz |
os_support: Choose between direct.h and io.h using a configure check
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/os_support.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 4ec37bdc77..1bf79ebc6d 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -39,10 +39,10 @@ #endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */ #ifdef _WIN32 -#ifdef __MINGW32CE__ -#include <io.h> -#else +#if HAVE_DIRECT_H #include <direct.h> +#elif HAVE_IO_H +#include <io.h> #endif #define mkdir(a, b) _mkdir(a) #else |