libgimpwidgets: fix automake syntaxe.

Automake doesn't accept the "if else" syntax. Instead, we must add a new if/else
inside the first else block.

While I'm at it, I also add a G_GNUC_INTERNAL to the internal function
_gimp_pick_button_win32_pick(), though I don't think it's absolutely necessary
(yet explicit is better).
This commit is contained in:
Jehan 2022-10-11 00:29:57 +02:00
parent fb1cb22f62
commit 8ac5178214
2 changed files with 6 additions and 2 deletions

View File

@ -152,7 +152,9 @@ EXTRA_DIST = \
if PLATFORM_OSX_QUARTZ
libgimpwidgets_sources += gimppickbutton-quartz.c gimppickbutton-quartz.h
AM_CPPFLAGS += "-xobjective-c"
else if PLATFORM_WIN32
else
if PLATFORM_WIN32
libgimpwidgets_sources += gimppickbutton-win32.c gimppickbutton-win32.h
else
libgimpwidgets_sources += \
@ -164,6 +166,8 @@ libgimpwidgets_sources += \
gimppickbutton-xdg.h
endif
endif
#
# rules to generate built sources

View File

@ -18,6 +18,6 @@
#ifndef __GIMP_PICK_BUTTON_WIN32_H__
#define __GIMP_PICK_BUTTON_WIN32_H__
void _gimp_pick_button_win32_pick (GimpPickButton *button);
G_GNUC_INTERNAL void _gimp_pick_button_win32_pick (GimpPickButton *button);
#endif /* __GIMP_PICK_BUTTON_WIN32_H__ */