From 6ff3f3e7cec7cd78a01d0bf76cbccfbe68dc0894 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Wed, 8 Aug 2007 19:18:10 +0000 Subject: Check for winsock2.h instead of __MINGW32__ Originally committed as revision 9988 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/os_support.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/os_support.h') diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 13615eec9e..30c069d78b 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -43,6 +43,9 @@ __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds); # define usleep(t) Sleep((t) / 1000) # include # define lseek(f,p,w) _lseeki64((f), (p), (w)) +#endif + +#ifdef HAVE_WINSOCK2_H # define HAVE_CLOSESOCKET 1 #endif -- cgit v1.2.3