Define WIN32_LEAN_AND_MEAN before including windows.h to exclude
authorRamiro Polla <ramiro.polla@gmail.com>
Sat, 8 Mar 2008 19:00:55 +0000 (19:00 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Sat, 8 Mar 2008 19:00:55 +0000 (19:00 +0000)
rarely-used header files.

Originally committed as revision 12378 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/os_support.h

index 285f0394706313fd0ebad79a18ee26bd23c7a90f..de29a1852762e3015fb18e56bbf85195475769c0 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #ifdef __MINGW32__
+#  define WIN32_LEAN_AND_MEAN
 #  include <windows.h>
 #  define usleep(t)    Sleep((t) / 1000)
 #  include <fcntl.h>