summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-01-06 16:20:12 +0000
committerJosé Fonseca <[email protected]>2009-01-06 18:23:16 +0000
commit3f46389a28e120e2f7725c327f55e0f644391db5 (patch)
tree92b17fb1718e9ff9a0a0f7dbc9b8fc2a42e9b61a /src
parent26ba5ce0e8fc54d330a0f26d0c5ab76e250fae3a (diff)
mesa: Ensure gl* symbols are marked as dllexport on windows.
Diffstat (limited to 'src')
-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
#