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:
a9c4320
)
Avoid gcc warning about redeclaration of atexit() on MinGW
author
Tor Lillqvist
<tml@iki.fi>
Mon, 9 Nov 2009 23:37:13 +0000
(
01:37
+0200)
committer
Tor Lillqvist
<tml@iki.fi>
Mon, 9 Nov 2009 23:40:01 +0000
(
01:40
+0200)
glib/gutils.h
patch
|
blob
|
history
diff --git
a/glib/gutils.h
b/glib/gutils.h
index
149d496
..
46c372c
100644
(file)
--- a/
glib/gutils.h
+++ b/
glib/gutils.h
@@
-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