GIMP master don't build on mingw-w64 '_argc' undeclared (first use in this function)
as title
../../libgimp/gimplegacy.h:172:31: error: '_argc' undeclared (first use in this function)
172 | _argc, __argv); \
| ^~~~~
script-fu.c:67:1: note: in expansion of macro 'MAIN'
67 | MAIN ()
| ^~~~
../../libgimp/gimplegacy.h:172:31: note: each undeclared identifier is reported only once for each function it appears in
172 | _argc, __argv); \
| ^~~~~
script-fu.c:67:1: note: in expansion of macro 'MAIN'
67 | MAIN ()
| ^~~~
../../libgimp/gimplegacy.h:167:20: warning: control reaches end of non-void function [-Wreturn-type]
167 | struct HINSTANCE__ *hPrevInstance, \
| ^~~~~~~~~~~
script-fu.c:67:1: note: in expansion of macro 'MAIN'
67 | MAIN ()
| ^~~~
make[4]: *** [Makefile:869: script-fu.o] Error 1
make[4]: Leaving directory '/home/IEUser/gimp/plug-ins/script-fu'
make[3]: *** [Makefile:902: all-recursive] Error 1
make[3]: Leaving directory '/home/IEUser/gimp/plug-ins/script-fu'
make[2]: *** [Makefile:708: all-recursive] Error 1
make[2]: Leaving directory '/home/IEUser/gimp/plug-ins'
make[1]: *** [Makefile:1411: all-recursive] Error 1
make[1]: Leaving directory '/home/IEUser/gimp'
make: *** [Makefile:1269: all] Error 2
The same happen on
make[3]: Entering directory '/home/IEUser/gimp/plug-ins/help'
CC help.o
In file included from help.c:31:
help.c: In function 'WinMain':
../../libgimp/gimp.h:116:24: error: '_argc' undeclared (first use in this function)
116 | _argc, __argv); \
| ^~~~~
help.c:98:1: note: in expansion of macro 'GIMP_MAIN'
98 | GIMP_MAIN (HELP_TYPE)
| ^~~~~~~~~
../../libgimp/gimp.h:116:24: note: each undeclared identifier is reported only once for each function it appears in
116 | _argc, __argv); \
| ^~~~~
help.c:98:1: note: in expansion of macro 'GIMP_MAIN'
98 | GIMP_MAIN (HELP_TYPE)
| ^~~~~~~~~
../../libgimp/gimp.h:111:20: warning: control reaches end of non-void function [-Wreturn-type]
111 | struct HINSTANCE__ *hPrevInstance, \
| ^~~~~~~~~~~
help.c:98:1: note: in expansion of macro 'GIMP_MAIN'
98 | GIMP_MAIN (HELP_TYPE)
| ^~~~~~~~~
make[3]: *** [Makefile:823: help.o] Error 1
make[3]: Leaving directory '/home/IEUser/gimp/plug-ins/help'
make[2]: *** [Makefile:708: all-recursive] Error 1
make[2]: Leaving directory '/home/IEUser/gimp/plug-ins'
make[1]: *** [Makefile:1411: all-recursive] Error 1
make[1]: Leaving directory '/home/IEUser/gimp'
make: *** [Makefile:1269: all] Error 2
Edited by lillolollo