We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15e6ce6 commit ba8eacbCopy full SHA for ba8eacb
xmlsec_setupinfo.py
@@ -171,12 +171,13 @@ def load_xmlsec1_config():
171
config.setdefault('libraries', [])
172
config.setdefault('include_dirs', [])
173
config.setdefault('library_dirs', [])
174
- # fix macros
175
- macros = config.setdefault('define_macros', [])
+ # fix macros, ensure that macros is list
+ macros = list(config.get('define_macros', []))
176
for i, v in enumerate(macros):
177
if v[0] == 'XMLSEC_CRYPTO':
178
macros[i] = ('XMLSEC_CRYPTO', '"{0}"'.format(v[1]))
179
break
180
+ config['define_macros'] = macros
181
return config
182
183
0 commit comments