[gtksourceview] version: add macros for 5.4



commit 812da199c59ddac2fcadce6fe8ffe5c6703c2125
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 11 14:59:14 2021 -0700

    version: add macros for 5.4

 gtksourceview/gtksourceversion.h.in | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
diff --git a/gtksourceview/gtksourceversion.h.in b/gtksourceview/gtksourceversion.h.in
index 0a603b87..088f44d5 100644
--- a/gtksourceview/gtksourceversion.h.in
+++ b/gtksourceview/gtksourceversion.h.in
@@ -245,6 +245,16 @@ G_BEGIN_DECLS
  */
 #define GTK_SOURCE_VERSION_5_2 (G_ENCODE_VERSION (5, 2))
 
+/**
+ * GTK_SOURCE_VERSION_5_4:
+ *
+ * A macro that evaluates to the 5.4 version of GtkSourceView,
+ * in a format that can be used by the C pre-processor.
+ *
+ * Since: 5.4
+ */
+#define GTK_SOURCE_VERSION_5_4 (G_ENCODE_VERSION (5, 4))
+
 /* Define GTK_SOURCE_VERSION_CUR_STABLE */
 #ifndef __GTK_DOC_IGNORE__
 #  if (GTK_SOURCE_MINOR_VERSION % 2)
@@ -594,6 +604,14 @@ G_BEGIN_DECLS
 #endif
 #endif /* __GTK_DOC_IGNORE__ */
 
+#ifndef __GTK_DOC_IGNORE__
+#if GTK_SOURCE_VERSION_MAX_ALLOWED < GTK_SOURCE_VERSION_5_4
+#define GTK_SOURCE_AVAILABLE_IN_5_4 G_UNAVAILABLE(5, 4) _GTK_SOURCE_EXTERN
+#else
+#define GTK_SOURCE_AVAILABLE_IN_5_4 _GTK_SOURCE_EXTERN
+#endif
+#endif /* __GTK_DOC_IGNORE__ */
+
 GTK_SOURCE_AVAILABLE_IN_3_20
 guint    gtk_source_get_major_version (void);
 GTK_SOURCE_AVAILABLE_IN_3_20


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]