Define WIN32_LEAN_AND_MEAN before including windows.h.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 26 Oct 2013 19:34:42 +0000 (21:34 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 26 Oct 2013 19:39:39 +0000 (21:39 +0200)
mono/utils/atomic.h

index 36e161e1bc1cea7bba28757d219cde2534387605..79455ad9c435c889e9e2fb5289b365324b2ea29a 100755 (executable)
@@ -21,6 +21,9 @@
 /* On Windows, we always use the functions provided by the Windows API. */
 #if defined(__WIN32__) || defined(_WIN32)
 
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
+#endif
 #include <windows.h>
 #include <mono/utils/mono-membar.h>