mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01: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:
parent
2f05d1454e
commit
41df41550f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user