On Fri, 7 Sep 2012, Måns Rullgård wrote:

Martin Storsjö <mar...@martin.st> writes:

On Thu, 6 Sep 2012, Måns Rullgård wrote:

Martin Storsjö <mar...@martin.st> writes:

---
 libavformat/os_support.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 8e2eb83..533b06b 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
--

How is sys/stat.h included currently?

It's not - the only place where mkdir is used currently is in
tools/ismindex (which currently is written to only use
public/installed headers).

os_support.h is not a public header.  Why don't you put that bit
directly in ismindex instead, if nothing else needs it?

This part is already in ismindex. This is a preparation for patch 3/3 that will use mkdir in a muxer.

// Martin
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to