mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-12 13:49:22 +01:00
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:
parent
9cde2ffe5f
commit
d7f2383949
@ -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>
|
Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* grel.c: made private functions static.
|
* grel.c: made private functions static.
|
||||||
|
@ -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>
|
Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* grel.c: made private functions static.
|
* grel.c: made private functions static.
|
||||||
|
@ -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>
|
Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* grel.c: made private functions static.
|
* grel.c: made private functions static.
|
||||||
|
@ -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>
|
Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* grel.c: made private functions static.
|
* grel.c: made private functions static.
|
||||||
|
@ -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>
|
Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* grel.c: made private functions static.
|
* grel.c: made private functions static.
|
||||||
|
@ -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>
|
Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* grel.c: made private functions static.
|
* grel.c: made private functions static.
|
||||||
|
@ -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>
|
Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* grel.c: made private functions static.
|
* grel.c: made private functions static.
|
||||||
|
@ -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>
|
Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* grel.c: made private functions static.
|
* grel.c: made private functions static.
|
||||||
|
12
glib.h
12
glib.h
@ -166,6 +166,18 @@
|
|||||||
#endif
|
#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.
|
/* Provide macros to feature the GCC function attribute.
|
||||||
*/
|
*/
|
||||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
||||||
|
12
glib/glib.h
12
glib/glib.h
@ -166,6 +166,18 @@
|
|||||||
#endif
|
#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.
|
/* Provide macros to feature the GCC function attribute.
|
||||||
*/
|
*/
|
||||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user