[gtksourceview] build: add 5.2 version macros



commit 50d0dde7d56c7442a157501aa1b6f6b48ffbdb3f
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jul 25 13:56:28 2021 -0700

    build: add 5.2 version macros

 gtksourceview/gtksourceversion.h.in | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourceversion.h.in b/gtksourceview/gtksourceversion.h.in
index 9b1b4d92..0a603b87 100644
--- a/gtksourceview/gtksourceversion.h.in
+++ b/gtksourceview/gtksourceversion.h.in
@@ -235,6 +235,16 @@ G_BEGIN_DECLS
  */
 #define GTK_SOURCE_VERSION_5_0 (G_ENCODE_VERSION (5, 0))
 
+/**
+ * GTK_SOURCE_VERSION_5_2:
+ *
+ * A macro that evaluates to the 5.2 version of GtkSourceView,
+ * in a format that can be used by the C pre-processor.
+ *
+ * Since: 5.2
+ */
+#define GTK_SOURCE_VERSION_5_2 (G_ENCODE_VERSION (5, 2))
+
 /* Define GTK_SOURCE_VERSION_CUR_STABLE */
 #ifndef __GTK_DOC_IGNORE__
 #  if (GTK_SOURCE_MINOR_VERSION % 2)
@@ -570,12 +580,20 @@ G_BEGIN_DECLS
 
 #ifndef __GTK_DOC_IGNORE__
 #if GTK_SOURCE_VERSION_MAX_ALLOWED < GTK_SOURCE_VERSION_5_0
-#define GTK_SOURCE_AVAILABLE_IN_5_0 G_UNAVAILABLE(4, 90) _GTK_SOURCE_EXTERN
+#define GTK_SOURCE_AVAILABLE_IN_5_0 G_UNAVAILABLE(5, 0) _GTK_SOURCE_EXTERN
 #else
 #define GTK_SOURCE_AVAILABLE_IN_5_0 _GTK_SOURCE_EXTERN
 #endif
 #endif /* __GTK_DOC_IGNORE__ */
 
+#ifndef __GTK_DOC_IGNORE__
+#if GTK_SOURCE_VERSION_MAX_ALLOWED < GTK_SOURCE_VERSION_5_2
+#define GTK_SOURCE_AVAILABLE_IN_5_2 G_UNAVAILABLE(5, 2) _GTK_SOURCE_EXTERN
+#else
+#define GTK_SOURCE_AVAILABLE_IN_5_2 _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]