aboutsummaryrefslogtreecommitdiff
path: root/tools/ismindex.c
diff options
context:
space:
mode:
authorMartin Storsjö2012-08-28 22:30:36 +0300
committerMartin Storsjö2012-08-29 00:23:18 +0300
commitbff714ad4c1a3db38816a9ebded20ef4f60ad08f (patch)
tree9c5b20c00b42f0a4457e8ffaf58b5af6925b04dd /tools/ismindex.c
parentd4bba93f4d9942ffede16c0f9d810eef7f81fe97 (diff)
ismindex: Include direct.h for _mkdir on windows
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>
Diffstat (limited to 'tools/ismindex.c')
-rw-r--r--tools/ismindex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ismindex.c b/tools/ismindex.c
index f6b0c6cca7..bf8c69d2e6 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -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"