ismindex: Include direct.h for _mkdir on windows
authorMartin Storsjö <martin@martin.st>
Tue, 28 Aug 2012 19:30:36 +0000 (22:30 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 28 Aug 2012 21:23:18 +0000 (00:23 +0300)
The Windows SDK in MSVC doesn't have mkdir, only _mkdir, and
MSDN says one should include direct.h to use it.

Signed-off-by: Martin Storsjö <martin@martin.st>
tools/ismindex.c

index f6b0c6c..bf8c69d 100644 (file)
@@ -36,8 +36,8 @@
 #include <string.h>
 #include <sys/stat.h>
 #ifdef _WIN32
-#include <io.h>
-#define mkdir(a, b) mkdir(a)
+#include <direct.h>
+#define mkdir(a, b) _mkdir(a)
 #endif
 
 #include "libavformat/avformat.h"