From 936aa142e02567dabdef319c227521ebb47b4ac6 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 7 Apr 2006 15:33:48 +0000 Subject: [PATCH] properly quote build settings, even if they come from the command line git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4648 212acab6-be3b-0410-9dea-997c60f758d6 --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index b95e5255..02d96609 100644 --- a/SConstruct +++ b/SConstruct @@ -153,7 +153,7 @@ defines_h = open(File('#Source/defines.h').abspath, 'w') for i in defenv['NSIS_CPPDEFINES']: if type(i) is not str: sconf_h.write('#define %s %s\n' % (i[0], i[1])) - if type(i[1]) is int: + if str(i[1])[0] != '"': defines_h.write('definedlist.add("%s", "%s");\n' % (i[0], i[1])) else: defines_h.write('definedlist.add("%s", %s);\n' % (i[0], i[1]))