On Wed, Jan 25, 2012 at 01:48:47PM +0200, Martin Storsjö wrote:
> Mingw doesn't have sleep, only _sleep (which is deprecated),
> Sleep (which is defined in winbase.h and not in the standard
> C headers) and usleep.

nit: MinGW

> --- a/tools/pktdumper.c
> +++ b/tools/pktdumper.c
> @@ -26,6 +26,10 @@
>  
> +#ifdef _WIN32
> +#define sleep(x) usleep((x)*10001000)
> +#endif

Why not replace sleep by usleep instead?  Seems much cleaner to me.

Diego
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to