From 6e86c9a6aa977331c6bd47b726aaf34398a5ad37 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 10 Nov 2009 01:37:13 +0200 Subject: [PATCH] Avoid gcc warning about redeclaration of atexit() on MinGW --- glib/gutils.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.34.1