Work around #define ECHO in a system header file included by Python.h on Mac OS X (bug #413)
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Mon, 24 Nov 2008 12:39:50 +0000
changeset 3917 fe95a4f9d423
parent 3916 a1e72a0595a6
child 3918 3604c4e42fd1
Work around #define ECHO in a system header file included by Python.h on Mac OS X (bug #413)
bindings/python/wscript
--- a/bindings/python/wscript	Mon Nov 24 12:09:47 2008 +0000
+++ b/bindings/python/wscript	Mon Nov 24 12:39:50 2008 +0000
@@ -269,6 +269,14 @@
 
     header_files.sort(sort_func)
 
+    print >> outfile, """
+
+/* http://www.nsnam.org/bugzilla/show_bug.cgi?id=413 */
+#ifdef ECHO
+# undef ECHO
+#endif
+
+"""
     for header in header_files:
         print >> outfile, "#include \"ns3/%s\"" % (header,)