Martin Storsjö <[email protected]> writes:

> 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

What guarantees that those fallbacks are defined?

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to