summaryrefslogtreecommitdiff
path: root/libavformat/os_support.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-09-13 12:34:17 +0300
committerMartin Storsjö <martin@martin.st>2012-09-13 13:52:50 +0300
commit7b07fab5675a616749ba6b9d0dfd89f1b51bdb8e (patch)
treece0151a6c499ff4bb61c96d202cc6a7855b4592a /libavformat/os_support.h
parent91ff4e83ca7f8cb64540ef2eb2c7e48b7e2cc8f7 (diff)
os_support: Include io.h instead of direct.h on mingw32ce
Windows CE doesn't have neither mkdir nor _mkdir officially (only CreateDirectoryW), but mingw32ce has compat wrappers with these names (declared in io.h since direct.h is unavailable). Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r--libavformat/os_support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 533b06beee..4ec37bdc77 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -39,7 +39,11 @@
#endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */
#ifdef _WIN32
+#ifdef __MINGW32CE__
+#include <io.h>
+#else
#include <direct.h>
+#endif
#define mkdir(a, b) _mkdir(a)
#else
#include <sys/stat.h>