mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-25 03:17:52 +02:00
Avoid gcc warning about redeclaration of atexit() on MinGW
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user