Commit 7d20e0c3 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Add G_GNUC_DEPRECATED. (Tom Tromey, #87969)

Thu Nov 21 14:09:44 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
        #87969)
parent 1a5e888b
Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
#87969)
2002-11-21 Tor Lillqvist <tml@iki.fi> 2002-11-21 Tor Lillqvist <tml@iki.fi>
* config.h.win32.in: Update to match what is currently produced by * config.h.win32.in: Update to match what is currently produced by
......
Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
#87969)
2002-11-21 Tor Lillqvist <tml@iki.fi> 2002-11-21 Tor Lillqvist <tml@iki.fi>
* config.h.win32.in: Update to match what is currently produced by * config.h.win32.in: Update to match what is currently produced by
......
Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
#87969)
2002-11-21 Tor Lillqvist <tml@iki.fi> 2002-11-21 Tor Lillqvist <tml@iki.fi>
* config.h.win32.in: Update to match what is currently produced by * config.h.win32.in: Update to match what is currently produced by
......
Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
#87969)
2002-11-21 Tor Lillqvist <tml@iki.fi> 2002-11-21 Tor Lillqvist <tml@iki.fi>
* config.h.win32.in: Update to match what is currently produced by * config.h.win32.in: Update to match what is currently produced by
......
Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
#87969)
2002-11-21 Tor Lillqvist <tml@iki.fi> 2002-11-21 Tor Lillqvist <tml@iki.fi>
* config.h.win32.in: Update to match what is currently produced by * config.h.win32.in: Update to match what is currently produced by
......
Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
#87969)
2002-11-21 Tor Lillqvist <tml@iki.fi> 2002-11-21 Tor Lillqvist <tml@iki.fi>
* config.h.win32.in: Update to match what is currently produced by * config.h.win32.in: Update to match what is currently produced by
......
Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
#87969)
2002-11-21 Tor Lillqvist <tml@iki.fi> 2002-11-21 Tor Lillqvist <tml@iki.fi>
* config.h.win32.in: Update to match what is currently produced by * config.h.win32.in: Update to match what is currently produced by
......
...@@ -79,6 +79,20 @@ ...@@ -79,6 +79,20 @@
#define G_GNUC_NO_INSTRUMENT #define G_GNUC_NO_INSTRUMENT
#endif /* !__GNUC__ */ #endif /* !__GNUC__ */
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
#define G_GNUC_DEPRECATED \
__attribute__((__deprecated__))
#else
#define G_GNUC_DEPRECATED
#endif /* __GNUC__ */
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
#define G_HIDDEN_SYMBOL
__attribute__((__visibility__("hidden")))
#else
#define G_HIDDEN_SYMBOL
#endif /* __GNUC__ */
/* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with /* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with
* macros, so we can refer to them as strings unconditionally. * macros, so we can refer to them as strings unconditionally.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment