summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-08-18 01:01:54 +0000
committerTim Janik <timj@src.gnome.org>1998-08-18 01:01:54 +0000
commitd7f23839498d1f6115ad86a2df4a173206651c82 (patch)
tree1ae84b99fa1fa9fba68ce8bf9c0bdce7f0b29a4b /glib
parent9cde2ffe5f64d07d10bbce479d5911af1b65758c (diff)
downloadglib-d7f23839498d1f6115ad86a2df4a173206651c82.tar.gz
if __STRICT_ANSI__ is defined, make `inline' a noop, since strict ANSI
Tue Aug 18 02:46:44 1998 Tim Janik <timj@gtk.org> * glib.h (__STRICT_ANSI__): if __STRICT_ANSI__ is defined, make `inline' a noop, since strict ANSI rules don't permit `inline'.
Diffstat (limited to 'glib')
-rw-r--r--glib/glib.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/glib/glib.h b/glib/glib.h
index ab4dc84e4..7fc2b543b 100644
--- a/glib/glib.h
+++ b/glib/glib.h
@@ -166,6 +166,18 @@
#endif
+/* ANSI does not permit the keyword `inline'.
+ */
+#if defined (__STRICT_ANSI__)
+# undef inline
+# ifdef __GNUC__
+# define inline __inline__
+# else /* !__GNUC__ */
+# define inline /* don't inline */
+# endif /* !__GNUC__ */
+#endif /* __STRICT_ANSI__ */
+
+
/* Provide macros to feature the GCC function attribute.
*/
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)