diff --git a/glib/gutils.h b/glib/gutils.h index 46c372ce2..bb4da8055 100644 --- a/glib/gutils.h +++ b/glib/gutils.h @@ -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)