Mesa (gallium-0.1): mesa: Ensure gl* symbols are marked as dllexport on windows.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Jan 6 18:35:46 UTC 2009


Module: Mesa
Branch: gallium-0.1
Commit: 3f46389a28e120e2f7725c327f55e0f644391db5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f46389a28e120e2f7725c327f55e0f644391db5

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Jan  6 16:20:12 2009 +0000

mesa: Ensure gl* symbols are marked as dllexport on windows.

---

 src/mesa/SConscript |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index 72ddc34..21c9830 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
 	#




More information about the mesa-commit mailing list