From 5cb911288ffc299eb4f2eb9eeacfebbc0061281e Mon Sep 17 00:00:00 2001 From: Doug Turner Date: Wed, 16 May 2012 13:27:56 -0700 Subject: [PATCH] Bug 755836 - undef near in directory helper to avoid build errors. r=kyle --- js/xpconnect/src/dictionary_helper_gen.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/xpconnect/src/dictionary_helper_gen.py b/js/xpconnect/src/dictionary_helper_gen.py index 5eaa07a6ccb..a5d736f5403 100644 --- a/js/xpconnect/src/dictionary_helper_gen.py +++ b/js/xpconnect/src/dictionary_helper_gen.py @@ -146,6 +146,10 @@ def print_header_file(fd, conf): "#include \"nsString.h\"\n" "#include \"nsCOMPtr.h\"\n\n") + # win32 namespace issues + fd.write("#undef near\n" + "\n\n") + forwards = [] attrnames = [] for d in conf.dictionaries: