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.
As an alternative, this could be moved to os_support.h, but then the sys/stat.h include would have to be moved there. --- libavformat/file.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libavformat/file.c b/libavformat/file.c index cca9ec1..ad8ac40 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -31,6 +31,13 @@ #include "os_support.h" #include "url.h" +#ifndef S_IRUSR +#define S_IRUSR S_IREAD +#endif +#ifndef S_IWUSR +#define S_IWUSR S_IWRITE +#endif + /* standard file protocol */ -- 1.7.9.4 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
