Merge pull request #444 from tp-m/config-undef

config file: write commented undef lines same as autoconf
pull/428/head
Jussi Pakkanen 9 years ago
commit c218f221fd
  1. 2
      mesonbuild/mesonlib.py

@ -227,7 +227,7 @@ def do_mesondefine(line, confdata):
try:
v = confdata.get(varname)
except KeyError:
return '/* undef %s */\n' % varname
return '/* #undef %s */\n' % varname
if isinstance(v, bool):
if v:
return '#define %s\n' % varname

Loading…
Cancel
Save