diff options
author | Bastien Nocera <hadess@hadess.net> | 2018-12-14 15:11:29 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2019-02-28 16:27:46 +0000 |
commit | d73be6cad65915836d84a38821f9eb4619797a9b (patch) | |
tree | d0424fc6753e8b40aa64b9763eba2d9a69627b14 /gdk-pixbuf | |
parent | a991b360bfbc4f98b67031df0b3c97c8e79f6f89 (diff) | |
download | gdk-pixbuf-d73be6cad65915836d84a38821f9eb4619797a9b.tar.gz |
Add missing 2.40 versioning macros
For the new API to be added.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-macros.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-macros.h b/gdk-pixbuf/gdk-pixbuf-macros.h index be1c25c0a..6461c5420 100644 --- a/gdk-pixbuf/gdk-pixbuf-macros.h +++ b/gdk-pixbuf/gdk-pixbuf-macros.h @@ -248,6 +248,16 @@ */ #define GDK_PIXBUF_VERSION_2_38 (G_ENCODE_VERSION (2, 38)) +/** + * GDK_PIXBUF_VERSION_2_40: + * + * A macro that evaluates to the 2.40 version of GdkPixbuf, + * in a format that can be used by the C pre-processor. + * + * Since: 2.40 + */ +#define GDK_PIXBUF_VERSION_2_40 (G_ENCODE_VERSION (2, 40)) + #ifndef __GTK_DOC_IGNORE__ #if (GDK_PIXBUF_MINOR % 2) #define GDK_PIXBUF_VERSION_CUR_STABLE (G_ENCODE_VERSION (GDK_PIXBUF_MAJOR, GDK_PIXBUF_MINOR + 1)) @@ -687,4 +697,22 @@ #endif #endif /* __GTK_DOC_IGNORE__ */ +#ifndef __GTK_DOC_IGNORE__ +#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_40 +#define GDK_PIXBUF_DEPRECATED_IN_2_40 G_DEPRECATED _GDK_PIXBUF_EXTERN +#define GDK_PIXBUF_DEPRECATED_IN_2_40_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN +#else +#define GDK_PIXBUF_DEPRECATED_IN_2_40 _GDK_PIXBUF_EXTERN +#define GDK_PIXBUF_DEPRECATED_IN_2_40_FOR(f) _GDK_PIXBUF_EXTERN +#endif +#endif /* __GTK_DOC_IGNORE__ */ + +#ifndef __GTK_DOC_IGNORE__ +#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_40 +#define GDK_PIXBUF_AVAILABLE_IN_2_40 G_UNAVAILABLE(2, 40) _GDK_PIXBUF_EXTERN +#else +#define GDK_PIXBUF_AVAILABLE_IN_2_40 _GDK_PIXBUF_EXTERN +#endif +#endif /* __GTK_DOC_IGNORE__ */ + #endif /* GDK_PIXBUF_MACROS_H */ |