[gnome-builder] build: add 42 macros



commit 2c7c974f412fba16dc9723381773c4e34843f752
Author: Christian Hergert <chergert redhat com>
Date:   Fri Nov 5 15:31:56 2021 -0700

    build: add 42 macros

 src/libide/core/ide-version-macros.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/src/libide/core/ide-version-macros.h b/src/libide/core/ide-version-macros.h
index ae3baaaef..b8487e876 100644
--- a/src/libide/core/ide-version-macros.h
+++ b/src/libide/core/ide-version-macros.h
@@ -46,6 +46,7 @@
 #define IDE_VERSION_3_38 (G_ENCODE_VERSION (3, 38))
 #define IDE_VERSION_3_40 (G_ENCODE_VERSION (3, 40))
 #define IDE_VERSION_41 (G_ENCODE_VERSION (41, 0))
+#define IDE_VERSION_42 (G_ENCODE_VERSION (42, 0))
 
 #if (IDE_MINOR_VERSION == 99)
 # define IDE_VERSION_CUR_STABLE (G_ENCODE_VERSION (IDE_MAJOR_VERSION + 1, 0))
@@ -229,3 +230,17 @@
 #else
 # define IDE_AVAILABLE_IN_41                 _IDE_EXTERN
 #endif
+
+#if IDE_VERSION_MIN_REQUIRED >= IDE_VERSION_42
+# define IDE_DEPRECATED_IN_42                IDE_DEPRECATED
+# define IDE_DEPRECATED_IN_42_FOR(f)         IDE_DEPRECATED_FOR(f)
+#else
+# define IDE_DEPRECATED_IN_42                _IDE_EXTERN
+# define IDE_DEPRECATED_IN_42_FOR(f)         _IDE_EXTERN
+#endif
+
+#if IDE_VERSION_MAX_ALLOWED < IDE_VERSION_42
+# define IDE_AVAILABLE_IN_42                 IDE_UNAVAILABLE(42, 0)
+#else
+# define IDE_AVAILABLE_IN_42                 _IDE_EXTERN
+#endif


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