mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
Add our own deprecation macros
This will allow to suppress deprecation warnings on a per-module basis, if needed. They are on by default now, though.
This commit is contained in:
parent
0da0411a4a
commit
a1acf35653
@ -406,6 +406,8 @@ G_HAVE_GNUC_VARARGS
|
|||||||
G_HAVE_ISO_VARARGS
|
G_HAVE_ISO_VARARGS
|
||||||
G_HAVE_GROWING_STACK
|
G_HAVE_GROWING_STACK
|
||||||
G_VA_COPY_AS_ARRAY
|
G_VA_COPY_AS_ARRAY
|
||||||
|
GLIB_DEPRECATED
|
||||||
|
GLIB_DEPRECATED_FOR
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
<SECTION>
|
<SECTION>
|
||||||
|
@ -304,4 +304,18 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* These macros are used to mark deprecated functions in GLib headers,
|
||||||
|
* and thus have to be exposed in installed headers. But please
|
||||||
|
* do *not* use them in other projects. Instead, use G_DEPRECATED
|
||||||
|
* or define your own wrappers around it.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef GLIB_DISABLE_DEPRECATION_WARNINGS
|
||||||
|
#define GLIB_DEPRECATED
|
||||||
|
#define GLIB_DEPRECATED_FOR(f)
|
||||||
|
#else
|
||||||
|
#define GLIB_DEPRECATED G_DEPRECATED
|
||||||
|
#define GLIB_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __G_MACROS_H__ */
|
#endif /* __G_MACROS_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user