if __STRICT_ANSI__ is defined, make `inline' a noop, since strict ANSI
authorTim Janik <timj@gtk.org>
Tue, 18 Aug 1998 01:01:54 +0000 (01:01 +0000)
committerTim Janik <timj@src.gnome.org>
Tue, 18 Aug 1998 01:01:54 +0000 (01:01 +0000)
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'.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib.h
glib/glib.h

index e0f3a64..9749b86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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'.
+
 Mon Aug 17 15:21:42 1998  Tim Janik  <timj@gtk.org>
 
        * grel.c: made private functions static.
index e0f3a64..9749b86 100644 (file)
@@ -1,3 +1,8 @@
+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'.
+
 Mon Aug 17 15:21:42 1998  Tim Janik  <timj@gtk.org>
 
        * grel.c: made private functions static.
index e0f3a64..9749b86 100644 (file)
@@ -1,3 +1,8 @@
+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'.
+
 Mon Aug 17 15:21:42 1998  Tim Janik  <timj@gtk.org>
 
        * grel.c: made private functions static.
index e0f3a64..9749b86 100644 (file)
@@ -1,3 +1,8 @@
+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'.
+
 Mon Aug 17 15:21:42 1998  Tim Janik  <timj@gtk.org>
 
        * grel.c: made private functions static.
index e0f3a64..9749b86 100644 (file)
@@ -1,3 +1,8 @@
+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'.
+
 Mon Aug 17 15:21:42 1998  Tim Janik  <timj@gtk.org>
 
        * grel.c: made private functions static.
index e0f3a64..9749b86 100644 (file)
@@ -1,3 +1,8 @@
+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'.
+
 Mon Aug 17 15:21:42 1998  Tim Janik  <timj@gtk.org>
 
        * grel.c: made private functions static.
index e0f3a64..9749b86 100644 (file)
@@ -1,3 +1,8 @@
+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'.
+
 Mon Aug 17 15:21:42 1998  Tim Janik  <timj@gtk.org>
 
        * grel.c: made private functions static.
index e0f3a64..9749b86 100644 (file)
@@ -1,3 +1,8 @@
+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'.
+
 Mon Aug 17 15:21:42 1998  Tim Janik  <timj@gtk.org>
 
        * grel.c: made private functions static.
diff --git a/glib.h b/glib.h
index ab4dc84..7fc2b54 100644 (file)
--- a/glib.h
+++ b/glib.h
 #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)
index ab4dc84..7fc2b54 100644 (file)
 #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)