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:
Emmanuele Bassi 2016-04-27 14:53:33 +01:00
parent 2f05d1454e
commit 41df41550f

View File

@ -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