[libsoup/wip/xmlrpc-variant: 1/11] Add SOUP_DEPRECATED_IN_2_52 macro



commit c817c5c7e8c586517816b513d35f2508a59933e7
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Mon Jul 27 15:30:18 2015 -0400

    Add SOUP_DEPRECATED_IN_2_52 macro
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746495

 docs/reference/libsoup-2.4-sections.txt |    2 ++
 libsoup/soup-version.h.in               |    8 ++++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/libsoup-2.4-sections.txt b/docs/reference/libsoup-2.4-sections.txt
index fd7e5c8..21757a4 100644
--- a/docs/reference/libsoup-2.4-sections.txt
+++ b/docs/reference/libsoup-2.4-sections.txt
@@ -1305,6 +1305,8 @@ SOUP_DEPRECATED_IN_2_48
 SOUP_DEPRECATED_IN_2_48_FOR
 SOUP_DEPRECATED_IN_2_50
 SOUP_DEPRECATED_IN_2_50_FOR
+SOUP_DEPRECATED_IN_2_52
+SOUP_DEPRECATED_IN_2_52_FOR
 SOUP_ENCODE_VERSION
 SOUP_VERSION_CUR_STABLE
 SOUP_VERSION_PREV_STABLE
diff --git a/libsoup/soup-version.h.in b/libsoup/soup-version.h.in
index 441957d..2a48eed 100644
--- a/libsoup/soup-version.h.in
+++ b/libsoup/soup-version.h.in
@@ -287,6 +287,14 @@ gboolean soup_check_version     (guint major,
 # define SOUP_AVAILABLE_IN_2_50
 #endif
 
+#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_52
+# define SOUP_DEPRECATED_IN_2_52                GLIB_DEPRECATED
+# define SOUP_DEPRECATED_IN_2_52_FOR(f)         GLIB_DEPRECATED_FOR(f)
+#else
+# define SOUP_DEPRECATED_IN_2_52
+# define SOUP_DEPRECATED_IN_2_52_FOR(f)
+#endif
+
 #if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_52
 # define SOUP_AVAILABLE_IN_2_52                 GLIB_UNAVAILABLE(2, 52)
 #else


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