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'.
This commit is contained in:
Tim Janik 1998-08-18 01:01:54 +00:00 committed by Tim Janik
parent 9cde2ffe5f
commit d7f2383949
10 changed files with 64 additions and 0 deletions

View 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.

View 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.

View 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.

View 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.

View 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.

View 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.

View 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.

View 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.

12
glib.h
View File

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

View File

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