Whenever we include windows.h, also define WIN32_LEAN_AND_MEAN
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>
Fri, 19 Feb 2016 14:56:26 +0000 (20:26 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 20 Feb 2016 10:07:42 +0000 (10:07 +0000)
This reduces the number of symbols and code pulled in drastically

gst/glib-compat.c
gst/gsttask.c
libs/gst/net/gstptpclock.c

index b6a5963..bb4c17f 100644 (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 */
index 62453d1..0d2f523 100644 (file)
@@ -111,6 +111,7 @@ struct _GstTaskPrivate
 };
 
 #ifdef _MSC_VER
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 
 struct _THREADNAME_INFO
index 1414faf..1528da2 100644 (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>