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 285f039..de29a18 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>