projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d13c552
)
Avoid compilation warning from MSVC
author
Haakon Sporsheim
<haakon.sporsheim@gmail.com>
Tue, 5 Jan 2010 09:28:43 +0000
(11:28 +0200)
committer
Tor 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
patch
|
blob
|
history
diff --git
a/glib/gutils.h
b/glib/gutils.h
index
46c372c
..
bb4da80
100644
(file)
--- 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)