[gtk] Add 4.8 version macros
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] Add 4.8 version macros
- Date: Wed, 23 Feb 2022 03:55:54 +0000 (UTC)
commit de705c2a2b54d361b50f4f08419ca008a928bba3
Author: Benjamin Otte <otte redhat com>
Date: Sun Feb 13 17:56:03 2022 +0100
Add 4.8 version macros
gdk/gdkversionmacros.h.in | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
---
diff --git a/gdk/gdkversionmacros.h.in b/gdk/gdkversionmacros.h.in
index 2056956ac0..af8b9c3798 100644
--- a/gdk/gdkversionmacros.h.in
+++ b/gdk/gdkversionmacros.h.in
@@ -108,6 +108,16 @@
*/
#define GDK_VERSION_4_6 (G_ENCODE_VERSION (4, 6))
+/**
+ * GDK_VERSION_4_8:
+ *
+ * A macro that evaluates to the 4.8 version of GDK, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 4.8
+ */
+#define GDK_VERSION_4_8 (G_ENCODE_VERSION (4, 8))
+
/* evaluates to the current stable version; for development cycles,
* this means the next stable target, with a hard backstop to the
@@ -249,4 +259,18 @@
# define GDK_DEPRECATED_IN_4_6_FOR(f) _GDK_EXTERN
#endif
+#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_4_8
+# define GDK_AVAILABLE_IN_4_8 GDK_UNAVAILABLE(4, 8)
+#else
+# define GDK_AVAILABLE_IN_4_8 _GDK_EXTERN
+#endif
+
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_4_8
+# define GDK_DEPRECATED_IN_4_8 GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_4_8_FOR(f) GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_4_8 _GDK_EXTERN
+# define GDK_DEPRECATED_IN_4_8_FOR(f) _GDK_EXTERN
+#endif
+
#endif /* __GDK_VERSION_MACROS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]