aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-03-12 16:44:15 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-03-12 16:44:15 +0200
commitc218f221fddd25db4437723c6a4e35d15da061fd (patch)
treefb361b1ac41f5ab4817ba9f9cce49894c2315061
parent2afc1dd497e78478faace68f14471ed9b3942d1f (diff)
parent48a2b201eafa2cfce3daf1639902113adbf3135f (diff)
downloadmeson-c218f221fddd25db4437723c6a4e35d15da061fd.zip
meson-c218f221fddd25db4437723c6a4e35d15da061fd.tar.gz
meson-c218f221fddd25db4437723c6a4e35d15da061fd.tar.bz2
Merge pull request #444 from tp-m/config-undef
config file: write commented undef lines same as autoconf
-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