aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-03-12 09:34:35 +0000
committerTim-Philipp Müller <tim@centricular.com>2016-03-12 09:34:35 +0000
commit48a2b201eafa2cfce3daf1639902113adbf3135f (patch)
tree688c0761fa5233f653fef612b1713201e692f3dd /mesonbuild/mesonlib.py
parent79537b54dbdaf467e425f6337d1c1566c4ccf26b (diff)
downloadmeson-48a2b201eafa2cfce3daf1639902113adbf3135f.zip
meson-48a2b201eafa2cfce3daf1639902113adbf3135f.tar.gz
meson-48a2b201eafa2cfce3daf1639902113adbf3135f.tar.bz2
config file: write commented undef lines same as autoconf
For easier diffing to see if anything is missing when porting.
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index a20ddf0..ac605bf 100644
--- a/mesonbuild/mesonlib.py
+++ b/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