From 885330d035ef9818836c159696cc1f64be82a9a2 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 24 Nov 2008 12:39:50 +0000 Subject: [PATCH] Work around #define ECHO in a system header file included by Python.h on Mac OS X (bug #413) --- bindings/python/wscript | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/python/wscript b/bindings/python/wscript index db0f71b7f..d255bd605 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -269,6 +269,14 @@ def gen_ns3_metaheader(task): 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,)