Skip to content

Commit d0f5228

Browse files
thewtexiMichka
authored andcommitted
Fix _HAS_TR1=0 definition for msvc9
This can get expanded the wrong way with VS9 leading to a compile error. Cherry-picked from the develop branch
1 parent b632d7e commit d0f5228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygccxml/parser/source_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def __create_command_line_castxml(self, source_file, xmlfile):
183183
cmd.append('--castxml-cc-msvc ' +
184184
'"%s"' % self.__config.compiler_path)
185185
if 'msvc9' == self.__config.compiler:
186-
cmd.append('-D"_HAS_TR1=0"')
186+
cmd.append('"-D_HAS_TR1=0"')
187187
else:
188188

189189
# On mac or linux, use gcc or clang (the flag is the same)

0 commit comments

Comments
 (0)