From 1a75c4c07d12174f856bc1deb37f138087ec0fe7 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Sun, 26 Feb 2017 10:53:19 -0500 Subject: [PATCH] Fix _HAS_TR1=0 definition for msvc9 This can get expanded the wrong way with VS9 leading to a compile error. --- pygccxml/parser/source_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygccxml/parser/source_reader.py b/pygccxml/parser/source_reader.py index 8603c646..6f951892 100644 --- a/pygccxml/parser/source_reader.py +++ b/pygccxml/parser/source_reader.py @@ -133,7 +133,7 @@ def __create_command_line_castxml(self, source_file, xmlfile): cmd.append('--castxml-cc-msvc ' + '"%s"' % self.__config.compiler_path) if self.__config.compiler == 'msvc9': - cmd.append('-D"_HAS_TR1=0"') + cmd.append('"-D_HAS_TR1=0"') else: # On mac or linux, use gcc or clang (the flag is the same)