[libsoup/wip/tingping/same-site: 6/7] soup-version: Add defs for 2.70 API



commit 22793953b5bd9174adbe183915f82fe358f868ac
Author: Patrick Griffis <pgriffis igalia com>
Date:   Tue Nov 12 16:37:33 2019 -0800

    soup-version: Add defs for 2.70 API

 libsoup/soup-version.h.in | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/libsoup/soup-version.h.in b/libsoup/soup-version.h.in
index 149a4ea8..b06b5ad0 100644
--- a/libsoup/soup-version.h.in
+++ b/libsoup/soup-version.h.in
@@ -399,10 +399,17 @@ G_BEGIN_DECLS
 
 #if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_70
 # define SOUP_DEPRECATED_IN_2_70                G_DEPRECATED
+# define SOUP_DEPRECATED_IN_2_70_FOR(f)         G_DEPRECATED_FOR(f)
 #else
 # define SOUP_DEPRECATED_IN_2_70
+# define SOUP_DEPRECATED_IN_2_70_FOR(f)
 #endif
 
+#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_70
+# define SOUP_AVAILABLE_IN_2_70                 G_UNAVAILABLE(2, 70) _SOUP_EXTERN
+#else
+# define SOUP_AVAILABLE_IN_2_70                 _SOUP_EXTERN
+#endif
 SOUP_AVAILABLE_IN_2_42
 guint    soup_get_major_version (void);
 


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