diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-01-06 16:20:12 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-01-06 18:23:16 +0000 |
commit | 3f46389a28e120e2f7725c327f55e0f644391db5 (patch) | |
tree | 92b17fb1718e9ff9a0a0f7dbc9b8fc2a42e9b61a /src/mesa/SConscript | |
parent | 26ba5ce0e8fc54d330a0f26d0c5ab76e250fae3a (diff) |
mesa: Ensure gl* symbols are marked as dllexport on windows.
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r-- | src/mesa/SConscript | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript index 72ddc341d1..21c98301d7 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 # |