[FFmpeg-cvslog] os_support: Include io.h instead of direct.h on mingw32ce
Martin Storsjö
git at videolan.org
Thu Sep 13 15:41:23 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Sep 13 12:34:17 2012 +0300| [7b07fab5675a616749ba6b9d0dfd89f1b51bdb8e] | committer: Martin Storsjö
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 at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b07fab5675a616749ba6b9d0dfd89f1b51bdb8e
---
libavformat/os_support.h | 4 ++++
1 file changed, 4 insertions(+)
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>
More information about the ffmpeg-cvslog
mailing list