Commit bd6a493697a79c5d0d65719c78490b5ff4f91e69

Sam Lantinga 2014-04-26T12:38:35

Fixed bug 2508 - don't redefine WIN32_LEAN_AND_MEAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/SDL_opengl.h b/include/SDL_opengl.h
index b48ea7a..43fc319 100644
--- a/include/SDL_opengl.h
+++ b/include/SDL_opengl.h
@@ -33,7 +33,9 @@
 #ifndef __IPHONEOS__
 
 #ifdef __WIN32__
+#ifndef WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN
+#endif
 #ifndef NOMINMAX
 #define NOMINMAX                /* Don't defined min() and max() */
 #endif