[glib] utils: Compile g_abort() only on Windows



commit 41df41550fa95d34f256f051794947e53a0ab56b
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Apr 27 14:53:33 2016 +0100

    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

 glib/gutils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/gutils.c b/glib/gutils.c
index 4d07941..7fc3c6f 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -2391,6 +2391,7 @@ g_check_setuid (void)
 #endif
 }
 
+#ifdef G_OS_WIN32
 /**
  * g_abort:
  *
@@ -2414,3 +2415,4 @@ g_abort (void)
   /* And one call to bind them all and terminate the program for sure */
   ExitProcess (127);
 }
+#endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]