[glib/glib-2-22] Avoid compilation warning from MSVC
- From: Tor Lillqvist <tml src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib/glib-2-22] Avoid compilation warning from MSVC
- Date: Tue, 5 Jan 2010 09:30:54 +0000 (UTC)
commit bd6dce6046c908424ac284b53a49d58d0ef0665a
Author: Haakon Sporsheim <haakon sporsheim gmail com>
Date: Tue Jan 5 11:28:43 2010 +0200
Avoid compilation warning from MSVC
Signed-off-by: Tor Lillqvist <tml iki fi>
glib/gutils.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gutils.h b/glib/gutils.h
index 46c372c..bb4da80 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]