[libsoup] soup-version.h: add 2.50 macros



commit d09281403326030ee04ba4df3b409e50c7b077a7
Author: Dan Winship <danw gnome org>
Date:   Wed Dec 3 05:50:13 2014 -0500

    soup-version.h: add 2.50 macros

 libsoup/soup-version.h.in |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-version.h.in b/libsoup/soup-version.h.in
index 1c11017..148b5e9 100644
--- a/libsoup/soup-version.h.in
+++ b/libsoup/soup-version.h.in
@@ -49,6 +49,7 @@ gboolean soup_check_version     (guint major,
 #define SOUP_VERSION_2_44 (SOUP_ENCODE_VERSION (2, 44))
 #define SOUP_VERSION_2_46 (SOUP_ENCODE_VERSION (2, 46))
 #define SOUP_VERSION_2_48 (SOUP_ENCODE_VERSION (2, 48))
+#define SOUP_VERSION_2_50 (SOUP_ENCODE_VERSION (2, 50))
 
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
@@ -271,6 +272,20 @@ gboolean soup_check_version     (guint major,
 # define SOUP_AVAILABLE_IN_2_48
 #endif
 
+#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_50
+# define SOUP_DEPRECATED_IN_2_50                GLIB_DEPRECATED
+# define SOUP_DEPRECATED_IN_2_50_FOR(f)         GLIB_DEPRECATED_FOR(f)
+#else
+# define SOUP_DEPRECATED_IN_2_50
+# define SOUP_DEPRECATED_IN_2_50_FOR(f)
+#endif
+
+#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_50
+# define SOUP_AVAILABLE_IN_2_50                 GLIB_UNAVAILABLE(2, 50)
+#else
+# define SOUP_AVAILABLE_IN_2_50
+#endif
+
 G_END_DECLS
 
 #endif /* SOUP_VERSION_H */


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