Commit 7b07fab5 authored by Martin Storsjö's avatar 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: 's avatarMartin Storsjö <martin@martin.st>
parent 91ff4e83
...@@ -39,7 +39,11 @@ ...@@ -39,7 +39,11 @@
#endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */ #endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */
#ifdef _WIN32 #ifdef _WIN32
#ifdef __MINGW32CE__
#include <io.h>
#else
#include <direct.h> #include <direct.h>
#endif
#define mkdir(a, b) _mkdir(a) #define mkdir(a, b) _mkdir(a)
#else #else
#include <sys/stat.h> #include <sys/stat.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment