Avoid compilation warning from MSVC
authorHaakon Sporsheim <haakon.sporsheim@gmail.com>
Tue, 5 Jan 2010 09:28:43 +0000 (11:28 +0200)
committerTor Lillqvist <tml@iki.fi>
Tue, 5 Jan 2010 09:32:59 +0000 (11:32 +0200)
Signed-off-by: Tor Lillqvist <tml@iki.fi>
glib/gutils.h

index 46c372c..bb4da80 100644 (file)
@@ -287,7 +287,7 @@ 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_)
+#if (defined(__MINGW_H) && !defined(_STDLIB_H_)) || (defined(_MSC_VER) && !defined(_INC_STDLIB))
 int atexit (void (*)(void));
 #endif
 #define g_atexit(func) atexit(func)