[sysprof] build: add version macros for 3.36



commit 47c09cb241c050effa55cb95a6a5afff67f1f9ef
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 30 18:26:02 2020 -0800

    build: add version macros for 3.36

 src/libsysprof-capture/sysprof-version-macros.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/src/libsysprof-capture/sysprof-version-macros.h b/src/libsysprof-capture/sysprof-version-macros.h
index 4a9aee8..5f0d100 100644
--- a/src/libsysprof-capture/sysprof-version-macros.h
+++ b/src/libsysprof-capture/sysprof-version-macros.h
@@ -75,6 +75,7 @@
 #endif
 
 #define SYSPROF_VERSION_3_34 (G_ENCODE_VERSION (3, 34))
+#define SYSPROF_VERSION_3_36 (G_ENCODE_VERSION (3, 36))
 
 #if (SYSPROF_MINOR_VERSION == 99)
 # define SYSPROF_VERSION_CUR_STABLE (G_ENCODE_VERSION (SYSPROF_MAJOR_VERSION + 1, 0))
@@ -160,3 +161,17 @@
 #else
 # define SYSPROF_AVAILABLE_IN_3_34                 _SYSPROF_EXTERN
 #endif
+
+#if SYSPROF_VERSION_MIN_REQUIRED >= SYSPROF_VERSION_3_36
+# define SYSPROF_DEPRECATED_IN_3_36                SYSPROF_DEPRECATED
+# define SYSPROF_DEPRECATED_IN_3_36_FOR(f)         SYSPROF_DEPRECATED_FOR(f)
+#else
+# define SYSPROF_DEPRECATED_IN_3_36                _SYSPROF_EXTERN
+# define SYSPROF_DEPRECATED_IN_3_36_FOR(f)         _SYSPROF_EXTERN
+#endif
+
+#if SYSPROF_VERSION_MAX_ALLOWED < SYSPROF_VERSION_3_36
+# define SYSPROF_AVAILABLE_IN_3_36                 SYSPROF_UNAVAILABLE(3, 34)
+#else
+# define SYSPROF_AVAILABLE_IN_3_36                 _SYSPROF_EXTERN
+#endif


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