You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.6 KiB
43 lines
1.6 KiB
From 86cd5222dc05e81305ffb22a49cb453c2f90e055 Mon Sep 17 00:00:00 2001
|
|
From: Christian Hergert <chergert@redhat.com>
|
|
Date: Wed, 13 Nov 2024 16:11:47 -0800
|
|
Subject: [PATCH 01/31] build: add 47 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 67dac287..d11b6bc9 100644
|
|
--- a/src/libsysprof-capture/sysprof-version-macros.h
|
|
+++ b/src/libsysprof-capture/sysprof-version-macros.h
|
|
@@ -91,6 +91,7 @@
|
|
#define SYSPROF_VERSION_3_38 (SYSPROF_ENCODE_VERSION (3, 38, 0))
|
|
#define SYSPROF_VERSION_3_40 (SYSPROF_ENCODE_VERSION (3, 40, 0))
|
|
#define SYSPROF_VERSION_3_46 (SYSPROF_ENCODE_VERSION (3, 46, 0))
|
|
+#define SYSPROF_VERSION_47 (SYSPROF_ENCODE_VERSION (47, 0, 0))
|
|
|
|
#if (SYSPROF_MINOR_VERSION == 99)
|
|
# define SYSPROF_VERSION_CUR_STABLE (SYSPROF_ENCODE_VERSION (SYSPROF_MAJOR_VERSION + 1, 0, 0))
|
|
@@ -232,3 +233,17 @@
|
|
#else
|
|
# define SYSPROF_AVAILABLE_IN_3_46 _SYSPROF_EXTERN
|
|
#endif
|
|
+
|
|
+#if SYSPROF_VERSION_MIN_REQUIRED >= SYSPROF_VERSION_47
|
|
+# define SYSPROF_DEPRECATED_IN_47 SYSPROF_DEPRECATED
|
|
+# define SYSPROF_DEPRECATED_IN_47_FOR(f) SYSPROF_DEPRECATED_FOR(f)
|
|
+#else
|
|
+# define SYSPROF_DEPRECATED_IN_47 _SYSPROF_EXTERN
|
|
+# define SYSPROF_DEPRECATED_IN_47_FOR(f) _SYSPROF_EXTERN
|
|
+#endif
|
|
+
|
|
+#if SYSPROF_VERSION_MAX_ALLOWED < SYSPROF_VERSION_47
|
|
+# define SYSPROF_AVAILABLE_IN_47 SYSPROF_UNAVAILABLE(47, 0)
|
|
+#else
|
|
+# define SYSPROF_AVAILABLE_IN_47 _SYSPROF_EXTERN
|
|
+#endif
|
|
--
|
|
2.45.2
|
|
|