bindings/python/wscript
changeset 4104 19147674758a
parent 4101 ca51ffa0d02b
child 4116 6f8542536217
--- a/bindings/python/wscript	Sat Jan 17 16:57:42 2009 +0000
+++ b/bindings/python/wscript	Sat Jan 17 16:58:42 2009 +0000
@@ -434,7 +434,15 @@
         pymod.target = 'ns3/_ns3'
         pymod.name = 'ns3module'
         pymod.uselib_local = "ns3"
-        pymod.env.append_value('CXXDEFINES', ['NS_DEPRECATED=', 'NS3_DEPRECATED_H'])
+
+        defines = list(pymod.env['CXXDEFINES'])
+        defines.extend(['NS_DEPRECATED=', 'NS3_DEPRECATED_H'])
+        if Options.platform == 'win32':
+            try:
+                defines.remove('_DEBUG') # causes undefined symbols on win32
+            except ValueError:
+                pass
+        pymod.env['CXXDEFINES'] = defines
 
         # copy the __init__.py file to the build dir. waf can't handle
         # this, it's against waf's principles to have build dir files