Avoid gcc warning about redeclaration of atexit() on MinGW
authorTor Lillqvist <tml@iki.fi>
Mon, 9 Nov 2009 23:37:13 +0000 (01:37 +0200)
committerTor Lillqvist <tml@iki.fi>
Mon, 9 Nov 2009 23:40:01 +0000 (01:40 +0200)
glib/gutils.h

index 149d496..46c372c 100644 (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