From: Just van Rossum Date: Tue, 19 Jun 2001 19:44:02 +0000 (+0000) Subject: Fixed -D emulation for symbols with a value, as specified with the define_macros... X-Git-Tag: v2.2a3~1516 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92c5bdbc194f0533ceee7492afc8a2bfdf5d5da8;p=thirdparty%2FPython%2Fcpython.git Fixed -D emulation for symbols with a value, as specified with the define_macros Extension argument. --- diff --git a/Lib/distutils/mwerkscompiler.py b/Lib/distutils/mwerkscompiler.py index 981fd95f01d8..1b416715eab5 100644 --- a/Lib/distutils/mwerkscompiler.py +++ b/Lib/distutils/mwerkscompiler.py @@ -164,7 +164,7 @@ class MWerksCompiler (CCompiler) : if value is None: fp.write('#define %s\n'%name) else: - fp.write('#define %s "%s"\n'%(name, value)) + fp.write('#define %s %s\n'%(name, value)) fp.close() settings['prefixname'] = prefixname