Code built by the still unstable mingw-w64 toolchain gets bogus argc and

2008-08-07  Tor Lillqvist  <tml@novell.com>

	* app/main.c: Code built by the still unstable mingw-w64 toolchain
	gets bogus argc and argv when built as subsystem:windows, so use
	__argc and __argv instead, which seem to be OK.

	* libgimp/gimp.h: Similar change here.


svn path=/trunk/; revision=26420
This commit is contained in:
Tor Lillqvist
2008-08-07 15:45:33 +00:00
committed by Tor Lillqvist
parent eb92ab8b22
commit c1d3d25ef2
3 changed files with 27 additions and 2 deletions

View File

@ -199,7 +199,10 @@ struct _GimpParam
int \
main (int argc, char *argv[]) \
{ \
return gimp_main (&PLUG_IN_INFO, argc, argv); \
/* Use __argc and __argv here, too, as they work \
* better with mingw-w64. \
*/ \
return gimp_main (&PLUG_IN_INFO, __argc, __argv); \
}
#else
# define MAIN() \