[libsoup/ebassi/deprecated-symbol-macros: 2/2] Use the project deprecation macro
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/ebassi/deprecated-symbol-macros: 2/2] Use the project deprecation macro
- Date: Sat, 13 Aug 2022 22:13:37 +0000 (UTC)
commit beca4f17fe129d40ef9ca9e369b7594519c68ed5
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sat Aug 13 23:12:33 2022 +0100
Use the project deprecation macro
This way we ensure every symbol gets exported, even when deprecated, and
that deprecation warnings can be disabled.
libsoup/generate-version-header.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libsoup/generate-version-header.py b/libsoup/generate-version-header.py
index 51ba661b..1d84721a 100755
--- a/libsoup/generate-version-header.py
+++ b/libsoup/generate-version-header.py
@@ -50,11 +50,11 @@ for version in versions:
* A macro used to indicate a symbol was deprecated in this version with a replacement.
*/
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_{major_version}_{minor_version}
-# define SOUP_DEPRECATED_IN_{major_version}_{minor_version} G_DEPRECATED
-# define SOUP_DEPRECATED_IN_{major_version}_{minor_version}_FOR(f) G_DEPRECATED_FOR(f)
+# define SOUP_DEPRECATED_IN_{major_version}_{minor_version} SOUP_DEPRECATED
+# define SOUP_DEPRECATED_IN_{major_version}_{minor_version}_FOR(f) SOUP_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_{major_version}_{minor_version}
-# define SOUP_DEPRECATED_IN_{major_version}_{minor_version}_FOR(f)
+# define SOUP_DEPRECATED_IN_{major_version}_{minor_version} _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_{major_version}_{minor_version}_FOR(f) _SOUP_EXTERN
#endif
/**
@@ -62,7 +62,7 @@ for version in versions:
* A macro used to indicate a symbol is available in this version or later.
*/
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_{major_version}_{minor_version}
-# define SOUP_AVAILABLE_IN_{major_version}_{minor_version} G_UNAVAILABLE({major_version},
{minor_version}) _SOUP_EXTERN
+# define SOUP_AVAILABLE_IN_{major_version}_{minor_version} SOUP_UNAVAILABLE({major_version},
{minor_version}) _SOUP_EXTERN
#else
# define SOUP_AVAILABLE_IN_{major_version}_{minor_version} _SOUP_EXTERN
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]