From: José Fonseca Date: Tue, 6 Jan 2009 16:20:12 +0000 (+0000) Subject: mesa: Ensure gl* symbols are marked as dllexport on windows. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2105b61846aad8d0c12dec00ef0c9ebdaacd0d4a;p=mesa.git mesa: Ensure gl* symbols are marked as dllexport on windows. --- diff --git a/src/mesa/SConscript b/src/mesa/SConscript index dd0468fb93c..01620ee6147 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 #