[sysprof] build: add missing 3.40 version macros



commit ff22417de990e03419fd54e660352723a7658770
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 24 17:41:20 2021 -0800

    build: add missing 3.40 version macros

 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 4393012..27a56b6 100644
--- a/src/libsysprof-capture/sysprof-version-macros.h
+++ b/src/libsysprof-capture/sysprof-version-macros.h
@@ -89,6 +89,7 @@
 #define SYSPROF_VERSION_3_34 (SYSPROF_ENCODE_VERSION (3, 34, 0))
 #define SYSPROF_VERSION_3_36 (SYSPROF_ENCODE_VERSION (3, 36, 0))
 #define SYSPROF_VERSION_3_38 (SYSPROF_ENCODE_VERSION (3, 38, 0))
+#define SYSPROF_VERSION_3_40 (SYSPROF_ENCODE_VERSION (3, 40, 0))
 
 #if (SYSPROF_MINOR_VERSION == 99)
 # define SYSPROF_VERSION_CUR_STABLE (SYSPROF_ENCODE_VERSION (SYSPROF_MAJOR_VERSION + 1, 0, 0))
@@ -202,3 +203,17 @@
 #else
 # define SYSPROF_AVAILABLE_IN_3_38                 _SYSPROF_EXTERN
 #endif
+
+#if SYSPROF_VERSION_MIN_REQUIRED >= SYSPROF_VERSION_3_40
+# define SYSPROF_DEPRECATED_IN_3_40                SYSPROF_DEPRECATED
+# define SYSPROF_DEPRECATED_IN_3_40_FOR(f)         SYSPROF_DEPRECATED_FOR(f)
+#else
+# define SYSPROF_DEPRECATED_IN_3_40                _SYSPROF_EXTERN
+# define SYSPROF_DEPRECATED_IN_3_40_FOR(f)         _SYSPROF_EXTERN
+#endif
+
+#if SYSPROF_VERSION_MAX_ALLOWED < SYSPROF_VERSION_3_40
+# define SYSPROF_AVAILABLE_IN_3_40                 SYSPROF_UNAVAILABLE(3, 40)
+#else
+# define SYSPROF_AVAILABLE_IN_3_40                 _SYSPROF_EXTERN
+#endif


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