summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/SConscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index 72ddc341d19..21c98301d7d 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -12,6 +12,12 @@ if env['platform'] != 'winddk':
'#/src/mesa',
])
+ if env['platform'] == 'windows':
+ env.Append(CPPDEFINES = [
+ '_GDI32_', # prevent gl* being declared __declspec(dllimport) in MS headers
+ 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
+ ])
+
#
# Source files
#