Martin Storsjö <[email protected]> writes:

> From: "Ronald S. Bultje" <[email protected]>
>
> Since the errno.h values don't match the error codes that winsock
> returns, map the winsock error codes to the errno ones, to make
> sure explicit checks against AVERROR(x) match.
> ---
>  libavformat/network.c |    8 ++++++++
>  libavformat/network.h |    8 ++++++++
>  2 files changed, 16 insertions(+)

Probably OK.

[...]

> +#ifndef EPROTONOSUPPORT
>  #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
> +#endif
> +#ifndef ETIMEDOUT
>  #define ETIMEDOUT       WSAETIMEDOUT
> +#endif
> +#ifndef ECONNREFUSED
>  #define ECONNREFUSED    WSAECONNREFUSED
> +#endif
> +#ifndef EINPROGRESS
>  #define EINPROGRESS     WSAEINPROGRESS
> +#endif
>  #define getsockopt(a, b, c, d, e) getsockopt(a, b, c, (char*) d, e)
>  #define setsockopt(a, b, c, d, e) setsockopt(a, b, c, (const char*) d, e)

This is begging for a blank line after the last #endif.

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

Reply via email to