mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-16 23:20:22 +02:00
utils: Compile g_abort() only on Windows
Otherwise it will break the build on non-Windows because of the macro in the header, and the unconditional use of Windows-only API. https://bugzilla.gnome.org/show_bug.cgi?id=665446
This commit is contained in:
@@ -2391,6 +2391,7 @@ g_check_setuid (void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
/**
|
/**
|
||||||
* g_abort:
|
* g_abort:
|
||||||
*
|
*
|
||||||
@@ -2414,3 +2415,4 @@ g_abort (void)
|
|||||||
/* And one call to bind them all and terminate the program for sure */
|
/* And one call to bind them all and terminate the program for sure */
|
||||||
ExitProcess (127);
|
ExitProcess (127);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user