summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/wgl/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker/wgl/SConscript')
-rw-r--r--src/mesa/state_tracker/wgl/SConscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/wgl/SConscript b/src/mesa/state_tracker/wgl/SConscript
index cceb8264ead..bb579930f52 100644
--- a/src/mesa/state_tracker/wgl/SConscript
+++ b/src/mesa/state_tracker/wgl/SConscript
@@ -11,8 +11,9 @@ if env['platform'] in ['windows']:
])
env.Append(CPPDEFINES = [
+ '_GDI32_', # prevent wgl* being declared __declspec(dllimport)
+ 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
'__GL_EXPORTS',
- 'BUILD_GL32',
'_GNU_H_WINDOWS32_DEFINES',
])