mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-05 17:06:18 +01:00
Avoid gcc warning about redeclaration of atexit() on MinGW
This commit is contained in:
parent
a9c4320e81
commit
6e86c9a6aa
@ -287,7 +287,9 @@ void g_atexit (GVoidFunc func);
|
|||||||
* wants the function to be called when it *itself* exits (or is
|
* wants the function to be called when it *itself* exits (or is
|
||||||
* detached, in case the caller, too, is a DLL).
|
* detached, in case the caller, too, is a DLL).
|
||||||
*/
|
*/
|
||||||
|
#if defined(__MINGW_H) && !defined(_STDLIB_H_)
|
||||||
int atexit (void (*)(void));
|
int atexit (void (*)(void));
|
||||||
|
#endif
|
||||||
#define g_atexit(func) atexit(func)
|
#define g_atexit(func) atexit(func)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user