Module: libav
Branch: master
Commit: 7b07fab5675a616749ba6b9d0dfd89f1b51bdb8e

Author:    Martin Storsjö <[email protected]>
Committer: Martin Storsjö <[email protected]>
Date:      Thu Sep 13 12:34:17 2012 +0300

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ö <[email protected]>

---

 libavformat/os_support.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 533b06b..4ec37bd 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>

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to