Avoid gcc warning about redeclaration of atexit() on MinGW

This commit is contained in:
Tor Lillqvist 2009-11-10 01:37:13 +02:00
parent a9c4320e81
commit 6e86c9a6aa

View File

@ -287,7 +287,9 @@ void g_atexit (GVoidFunc func);
* wants the function to be called when it *itself* exits (or is
* detached, in case the caller, too, is a DLL).
*/
#if defined(__MINGW_H) && !defined(_STDLIB_H_)
int atexit (void (*)(void));
#endif
#define g_atexit(func) atexit(func)
#endif