summaryrefslogtreecommitdiff
path: root/gutils.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2000-09-07 23:08:25 +0000
committerTim Janik <timj@src.gnome.org>2000-09-07 23:08:25 +0000
commit9432265430dc0d4c61551a5a3cbdd6216297f8e4 (patch)
treea30a0c60558a0ee342220359f89b122b34bd8ecf /gutils.c
parenta5c0df554e7fb0d05c98bd2ddac893f84b35feba (diff)
downloadglib-9432265430dc0d4c61551a5a3cbdd6216297f8e4.tar.gz
for non-i386 and non-alpha, or non gcc, implement BREAKPOINT() as raise (5
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org> * glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc, implement BREAKPOINT() as raise (5 /* SIGTRAP */); * glib.h: provide user-definable switch G_IMPLEMENT_INLINES, to turn on compilation of inline function implementations provided in header files with extern linkage. wrap inline function implementations into ifdef __G_UTILS_C__, so we really only compile them for gutils.c and not also into arbitrary user code that wants to make use of G_IMPLEMENT_INLINES. adjusted comment apropriately. * gutils.c: to turn on compilation of inline functions, provide #define G_IMPLEMENT_INLINES 1 and #define __G_UTILS_C__.
Diffstat (limited to 'gutils.c')
-rw-r--r--gutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gutils.c b/gutils.c
index cb90be1f0..1f45d0e17 100644
--- a/gutils.c
+++ b/gutils.c
@@ -50,8 +50,8 @@
/* implement Glib's inline functions
*/
-#define G_INLINE_FUNC extern
-#define G_CAN_INLINE 1
+#define G_IMPLEMENT_INLINES 1
+#define __G_UTILS_C__
#include "glib.h"
#ifdef MAXPATHLEN