os_support: Include io.h instead of direct.h on mingw32ce
authorMartin Storsjö <martin@martin.st>
Thu, 13 Sep 2012 09:34:17 +0000 (12:34 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 13 Sep 2012 10:52:50 +0000 (13:52 +0300)
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>
libavformat/os_support.h

index 533b06b..4ec37bd 100644 (file)
 #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>