[Libreoffice-commits] core.git: solenv/bin

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Nov 9 22:43:32 UTC 2018


 solenv/bin/native-code.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 760f9867f236624c0082d5b8c8578800cb0802e6
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Sat Nov 10 00:40:41 2018 +0200
Commit:     Tor Lillqvist <tml at 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


More information about the Libreoffice-commits mailing list