aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 581a8139..8ae6eb92 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -114,6 +114,10 @@ if (WIN32)
# MSVC & MinGW only define & use APIENTRY
add_definitions (-DGLAPIENTRY=__stdcall)
+ # Avoid namespace pollution when including windows.h
+ # http://support.microsoft.com/kb/166474
+ add_definitions (-DWIN32_LEAN_AND_MEAN=1)
+
# Don't define min/max macros
add_definitions (-DNOMINMAX)