summaryrefslogtreecommitdiff
path: root/libavformat/os_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r--libavformat/os_support.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 8e2eb83ccd..533b06beee 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -38,6 +38,13 @@
# define fstat(f,s) _fstati64((f), (s))
#endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */
+#ifdef _WIN32
+#include <direct.h>
+#define mkdir(a, b) _mkdir(a)
+#else
+#include <sys/stat.h>
+#endif
+
static inline int is_dos_path(const char *path)
{
#if HAVE_DOS_PATHS