]> git.sesse.net Git - vlc/commitdiff
Define WIN32_LEAN_AND_MEAN in config.h rather than vlc_common.h
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 28 Jan 2012 14:56:58 +0000 (16:56 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 28 Jan 2012 14:56:58 +0000 (16:56 +0200)
configure.ac
include/vlc_common.h

index dc11ac033937eb87e5ae24ad1d7b9782ab9e20a6..4e8792a23121891b5589da6f796fe8d64d4d1e32 100644 (file)
@@ -59,6 +59,7 @@ AC_DEFINE([_FILE_OFFSET_BITS], 64, [Define to 64 for large files support.])
 AC_DEFINE([_REENTRANT],, [Define to expose reentrant functions.])
 AC_DEFINE([_THREAD_SAFE],, [Same as _REENTANT for some other OSes.])
 AC_DEFINE([__LIBVLC__],, [Define within the LibVLC source code tree.])
+AC_DEFINE([WIN32_LEAN_AND_MEAN],, [Define to limit the scope of <windows.h>.])
 
 AM_PROG_CC_C_O
 AC_PROG_CXX
index ac4b713b7576e552db3f000e5cf4842598e5f0e0..545b1cd08b3ae0ecfecd26e4db64778838ccd214 100644 (file)
@@ -449,9 +449,6 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *,      /* variable's object */
  * OS-specific headers and thread types
  *****************************************************************************/
 #if defined( WIN32 ) || defined( UNDER_CE )
-/* WIN32_LEAN_AND_MEAN is needed to be able to include winsock2.h because else,
- * windows.h will also include winsock.h and declarations will conflict */
-# define WIN32_LEAN_AND_MEAN
 # include <windows.h>
 #endif