scons: Don't define UNICODE on windows builds.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 22 Jan 2009 14:26:30 +0000 (14:26 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 22 Jan 2009 14:26:30 +0000 (14:26 +0000)
It creates problems in many libraries (glut, glew) which are not unicode
aware.

scons/gallium.py

index 1218067..65dd0ab 100644 (file)
@@ -220,8 +220,8 @@ def generate(env):
         cppdefines += [
             'WIN32',
             '_WINDOWS',
-            '_UNICODE',
-            'UNICODE',
+            #'_UNICODE',
+            #'UNICODE',
             ('_WIN32_WINNT', '0x0501'), # minimum required OS version
             ('WINVER', '0x0501'),
             # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx,