Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92c5bdb

Browse files
committed
Fixed -D emulation for symbols with a value, as specified with the define_macros Extension argument.
1 parent 7069763 commit 92c5bdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/mwerkscompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def link (self,
164164
if value is None:
165165
fp.write('#define %s\n'%name)
166166
else:
167-
fp.write('#define %s "%s"\n'%(name, value))
167+
fp.write('#define %s %s\n'%(name, value))
168168
fp.close()
169169
settings['prefixname'] = prefixname
170170

0 commit comments

Comments
 (0)