[gtk/inspector-layouts: 2/5] Add 4.4 version macros
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/inspector-layouts: 2/5] Add 4.4 version macros
- Date: Mon, 3 May 2021 00:48:38 +0000 (UTC)
commit 105b9bfb3de6c4857bc411a38617f59b1ec967f1
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Apr 25 23:34:16 2021 -0400
Add 4.4 version macros
gdk/gdkversionmacros.h.in | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
---
diff --git a/gdk/gdkversionmacros.h.in b/gdk/gdkversionmacros.h.in
index b6d0960a7f..c4a4a5a10f 100644
--- a/gdk/gdkversionmacros.h.in
+++ b/gdk/gdkversionmacros.h.in
@@ -86,6 +86,14 @@
*/
#define GDK_VERSION_4_2 (G_ENCODE_VERSION (4, 2))
+/**
+ * GDK_VERSION_4_4:
+ *
+ * A macro that evaluates to the 4.4 version of GDK, in a format
+ * that can be used by the C pre-processor.
+ */
+#define GDK_VERSION_4_4 (G_ENCODE_VERSION (4, 4))
+
/* evaluates to the current stable version; for development cycles,
* this means the next stable target, with a hard backstop to the
@@ -198,4 +206,19 @@
# define GDK_DEPRECATED_IN_4_2_FOR(f) _GDK_EXTERN
#endif
+
+#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_4_4
+# define GDK_AVAILABLE_IN_4_4 GDK_UNAVAILABLE(4, 4)
+#else
+# define GDK_AVAILABLE_IN_4_4 _GDK_EXTERN
+#endif
+
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_4_4
+# define GDK_DEPRECATED_IN_4_4 GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_4_4_FOR(f) GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_4_4 _GDK_EXTERN
+# define GDK_DEPRECATED_IN_4_4_FOR(f) _GDK_EXTERN
+#endif
+
#endif /* __GDK_VERSION_MACROS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]