summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2015-07-27 15:30:18 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2015-08-12 11:06:52 -0400
commitd25450a059909417e46f5724d86b2bad5ae95cb8 (patch)
tree709200999d74a058d9930a1d8120690d54b34103
parent292bd59990337edff103fdcd8b0d543290184c9a (diff)
downloadlibsoup-d25450a059909417e46f5724d86b2bad5ae95cb8.tar.gz
Add SOUP_DEPRECATED_IN_2_52 macro
https://bugzilla.gnome.org/show_bug.cgi?id=746495
-rw-r--r--docs/reference/libsoup-2.4-sections.txt2
-rw-r--r--libsoup/soup-version.h.in8
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 fd7e5c83..21757a4d 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 441957d8..2a48eed9 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