Make sure we don't trigger deprecation warnings while compiling the python bindings.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Fri, 11 Jul 2008 19:32:22 +0100
changeset 3417 06df0787254b
parent 3416 926ccb845111
child 3418 3ba0b240cff5
Make sure we don't trigger deprecation warnings while compiling the python bindings.
bindings/python/wscript
--- a/bindings/python/wscript	Fri Jul 11 18:39:19 2008 +0100
+++ b/bindings/python/wscript	Fri Jul 11 19:32:22 2008 +0100
@@ -348,6 +348,7 @@
         pymod.target = 'ns3/_ns3'
         pymod.name = 'ns3module'
         pymod.uselib_local = "ns3"
+        pymod.env.append_value('CXXDEFINES', ['NS_DEPRECATED=""', 'NS3_DEPRECATED_H'])
 
         # 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