mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
gmacros: Add G_GNUC_UNAVAILABLE
A macro to annotate a function as not available, when compiling with GCC.
This commit is contained in:
parent
9e5ff3d3eb
commit
11de54927d
@ -138,6 +138,13 @@
|
||||
#define G_GNUC_WARN_UNUSED_RESULT
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
|
||||
#define G_GNUC_UNAVAILABLE __attribute__((unavailable))
|
||||
#else
|
||||
#define G_GNUC_UNAVAILABLE
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
/* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with
|
||||
* macros, so we can refer to them as strings unconditionally.
|
||||
|
Loading…
x
Reference in New Issue
Block a user