solenv/bin/native-code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 760f9867f236624c0082d5b8c8578800cb0802e6 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Sat Nov 10 00:40:41 2018 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Sat Nov 10 00:40:41 2018 +0200 Test ENABLE_FUZZERS with #if, not #ifdef Change-Id: If3efa54c5d0ce7ffee3bf3f4ecb1de5ff7e4267d 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits