Add 4.10 version macros
authorMatthias Clasen <mclasen@redhat.com>
Wed, 28 Sep 2022 17:24:09 +0000 (13:24 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 28 Sep 2022 17:30:01 +0000 (13:30 -0400)
gdk/gdkversionmacros.h.in

index af8b9c37989e0ffbbc1ebc25a16730682a0322b9..9c25dab76deb2e6f0215bfc50052c97879dd47ae 100644 (file)
  */
 #define GDK_VERSION_4_8        (G_ENCODE_VERSION (4, 8))
 
+/**
+ * GDK_VERSION_4_10:
+ *
+ * A macro that evaluates to the 4.10 version of GDK, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 4.10
+ */
+#define GDK_VERSION_4_10        (G_ENCODE_VERSION (4, 10))
+
 
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target, with a hard backstop to the
 # define GDK_DEPRECATED_IN_4_8_FOR(f)           _GDK_EXTERN
 #endif
 
+#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_4_10
+# define GDK_AVAILABLE_IN_4_10                  GDK_UNAVAILABLE(4, 10)
+#else
+# define GDK_AVAILABLE_IN_4_10                  _GDK_EXTERN
+#endif
+
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_4_10
+# define GDK_DEPRECATED_IN_4_10                 GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_4_10_FOR(f)          GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_4_10                 _GDK_EXTERN
+# define GDK_DEPRECATED_IN_4_10_FOR(f)          _GDK_EXTERN
+#endif
+
 #endif  /* __GDK_VERSION_MACROS_H__ */