]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/os_support.h
nsvdec: Remove commented-out debug cruft
[ffmpeg] / libavformat / os_support.h
index 4ec37bdc77afc2d62f2f9a3f2128f1186f946a0c..39d4cb6519e3c3c8867e173664c18f53fdea45b6 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <sys/stat.h>
 
-#if defined(__MINGW32__) && !defined(__MINGW32CE__)
+#if defined(_WIN32) && !defined(__MINGW32CE__)
 #  include <fcntl.h>
 #  define lseek(f,p,w) _lseeki64((f), (p), (w))
 #  define stat _stati64
 #endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */
 
 #ifdef _WIN32
-#ifdef __MINGW32CE__
-#include <io.h>
-#else
+#if HAVE_DIRECT_H
 #include <direct.h>
+#elif HAVE_IO_H
+#include <io.h>
 #endif
 #define mkdir(a, b) _mkdir(a)
 #else
@@ -58,7 +58,7 @@ static inline int is_dos_path(const char *path)
     return 0;
 }
 
-#if defined(__OS2__)
+#if defined(__OS2__) || defined(__Plan9__)
 #define SHUT_RD 0
 #define SHUT_WR 1
 #define SHUT_RDWR 2