summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2001-06-19 19:44:02 (GMT)
committerJust van Rossum <just@letterror.com>2001-06-19 19:44:02 (GMT)
commit92c5bdbc194f0533ceee7492afc8a2bfdf5d5da8 (patch)
tree0843fee20f62383b6e001bd5246348bb85ec9bb9
parent7069763913b6efaf3560545bfdabc4dbfb4c3d02 (diff)
downloadcpython-92c5bdbc194f0533ceee7492afc8a2bfdf5d5da8.zip
cpython-92c5bdbc194f0533ceee7492afc8a2bfdf5d5da8.tar.gz
cpython-92c5bdbc194f0533ceee7492afc8a2bfdf5d5da8.tar.bz2
Fixed -D emulation for symbols with a value, as specified with the define_macros Extension argument.
-rw-r--r--Lib/distutils/mwerkscompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/mwerkscompiler.py b/Lib/distutils/mwerkscompiler.py
index 981fd95..1b41671 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