Work around #define ECHO in a system header file included by Python.h on Mac OS X (bug #413)

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-11-24 12:39:50 +00:00
parent ef00197fe8
commit 885330d035

View File

@@ -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,)