[FFmpeg-cvslog] ismindex: Include direct.h for _mkdir on windows

Martin Storsjö git at videolan.org
Wed Aug 29 18:09:26 CEST 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Aug 28 22:30:36 2012 +0300| [bff714ad4c1a3db38816a9ebded20ef4f60ad08f] | committer: Martin Storsjö

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 at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bff714ad4c1a3db38816a9ebded20ef4f60ad08f
---

 tools/ismindex.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/ismindex.c b/tools/ismindex.c
index f6b0c6c..bf8c69d 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"



More information about the ffmpeg-cvslog mailing list