[gnome-builder] build: add version macros



commit 4e9c248272414076042fe9fa84552e679c5950ef
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 11 00:44:09 2018 -0700

    build: add version macros

 src/libide/ide-version-macros.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/src/libide/ide-version-macros.h b/src/libide/ide-version-macros.h
index 4bd800886..32314c57a 100644
--- a/src/libide/ide-version-macros.h
+++ b/src/libide/ide-version-macros.h
@@ -43,6 +43,7 @@
 
 #define IDE_VERSION_3_28 (G_ENCODE_VERSION (3, 28))
 #define IDE_VERSION_3_30 (G_ENCODE_VERSION (3, 30))
+#define IDE_VERSION_3_32 (G_ENCODE_VERSION (3, 32))
 
 #if (IDE_MINOR_VERSION == 99)
 # define IDE_VERSION_CUR_STABLE (G_ENCODE_VERSION (IDE_MAJOR_VERSION + 1, 0))
@@ -143,4 +144,18 @@
 # define IDE_AVAILABLE_IN_3_30                 _IDE_EXTERN
 #endif
 
+#if IDE_VERSION_MIN_REQUIRED >= IDE_VERSION_3_32
+# define IDE_DEPRECATED_IN_3_32                IDE_DEPRECATED
+# define IDE_DEPRECATED_IN_3_32_FOR(f)         IDE_DEPRECATED_FOR(f)
+#else
+# define IDE_DEPRECATED_IN_3_32                _IDE_EXTERN
+# define IDE_DEPRECATED_IN_3_32_FOR(f)         _IDE_EXTERN
+#endif
+
+#if IDE_VERSION_MAX_ALLOWED < IDE_VERSION_3_32
+# define IDE_AVAILABLE_IN_3_32                 IDE_UNAVAILABLE(3, 32)
+#else
+# define IDE_AVAILABLE_IN_3_32                 _IDE_EXTERN
+#endif
+
 #endif /* IDE_VERSION_MACROS_H */


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