summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-11-10 00:40:41 +0200
committerTor Lillqvist <tml@collabora.com>2018-11-10 00:40:41 +0200
commit760f9867f236624c0082d5b8c8578800cb0802e6 (patch)
tree4561dd853558c56078a27efcc25b040d51ad3f31 /solenv
parent2c10ed72c9e4d53064377183b606af22a0e34383 (diff)
Test ENABLE_FUZZERS with #if, not #ifdef
Change-Id: If3efa54c5d0ce7ffee3bf3f4ecb1de5ff7e4267d
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/native-code.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/bin/native-code.py b/solenv/bin/native-code.py
index e6fa5f3a2431..7b07c6597139 100755
--- a/solenv/bin/native-code.py
+++ b/solenv/bin/native-code.py
@@ -640,7 +640,7 @@ print ('')
for entry in sorted(custom_widgets):
print ('void make' + entry + '();')
print ('typedef void (*custom_widget_func)();')
-print ('#if !defined(ENABLE_FUZZERS)')
+print ('#if !ENABLE_FUZZERS')
print ('static struct { const char *name; custom_widget_func func; } custom_widgets[] = {')
for entry in sorted(custom_widgets):
print (' { "make' + entry + '", make' + entry + ' },')
@@ -650,7 +650,7 @@ print ('')
print ("""
custom_widget_func lo_get_custom_widget_func(const char* name)
{
-#if defined(ENABLE_FUZZERS)
+#if ENABLE_FUZZERS
(void)name;
return nullptr;
#else