mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-24 09:58:54 +02:00
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)
This commit is contained in:
@@ -79,6 +79,20 @@
|
||||
#define G_GNUC_NO_INSTRUMENT
|
||||
#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
|
||||
* macros, so we can refer to them as strings unconditionally.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user