From: Tor Lillqvist Date: Mon, 9 Nov 2009 23:37:13 +0000 (+0200) Subject: Avoid gcc warning about redeclaration of atexit() on MinGW X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=6e86c9a6aa977331c6bd47b726aaf34398a5ad37;p=dana%2Fcg-glib.git Avoid gcc warning about redeclaration of atexit() on MinGW --- diff --git a/glib/gutils.h b/glib/gutils.h index 149d4963..46c372ce 100644 --- a/glib/gutils.h +++ b/glib/gutils.h @@ -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