Whenever we include windows.h, also define WIN32_LEAN_AND_MEAN

This reduces the number of symbols and code pulled in drastically
This commit is contained in:
Nirbheek Chauhan 2016-02-19 20:26:26 +05:30 committed by Tim-Philipp Müller
parent 55f9406f30
commit 806dbeeef3
3 changed files with 3 additions and 0 deletions

View file

@ -38,6 +38,7 @@
#include <sys/types.h>
#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <io.h>
#endif /* G_OS_WIN32 */

View file

@ -111,6 +111,7 @@ struct _GstTaskPrivate
};
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
struct _THREADNAME_INFO

View file

@ -61,6 +61,7 @@
#include <sys/wait.h>
#endif
#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include <sys/types.h>