From 3f46389a28e120e2f7725c327f55e0f644391db5 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 6 Jan 2009 16:20:12 +0000 Subject: mesa: Ensure gl* symbols are marked as dllexport on windows. --- src/mesa/SConscript | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 # -- cgit v1.2.3