From: "Ronald S. Bultje" <[email protected]> Mingw headers provide similar defines already (unconditional #defines, without any #undef or #ifdef around it), while MSVC doesn't have them. --- libavformat/os_support.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 3db20a9..83b15ba 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -51,10 +51,19 @@ static inline int is_dos_path(const char *path) #define SHUT_RDWR 2 #endif +#include <sys/stat.h> + #if defined(_WIN32) #define SHUT_RD SD_RECEIVE #define SHUT_WR SD_SEND #define SHUT_RDWR SD_BOTH + +#ifndef S_IRUSR +#define S_IRUSR S_IREAD +#endif +#ifndef S_IWUSR +#define S_IWUSR S_IWRITE +#endif #endif #if defined(_WIN32) && !defined(__MINGW32CE__) -- 1.7.9.4 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
