[libsoup] Add 2.58 version macros



commit b563c12e31317dd95d8c860dde506b99519fdd2d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Oct 19 17:31:27 2016 +0200

    Add 2.58 version macros
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773251

 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 ac0d7ad..27ae751 100644
--- a/libsoup/soup-version.h.in
+++ b/libsoup/soup-version.h.in
@@ -64,6 +64,7 @@ G_BEGIN_DECLS
 #define SOUP_VERSION_2_52 (G_ENCODE_VERSION (2, 52))
 #define SOUP_VERSION_2_54 (G_ENCODE_VERSION (2, 54))
 #define SOUP_VERSION_2_56 (G_ENCODE_VERSION (2, 56))
+#define SOUP_VERSION_2_58 (G_ENCODE_VERSION (2, 58))
 
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
@@ -344,6 +345,20 @@ G_BEGIN_DECLS
 # define SOUP_AVAILABLE_IN_2_56                 _SOUP_EXTERN
 #endif
 
+#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_58
+# define SOUP_DEPRECATED_IN_2_58                G_DEPRECATED
+# define SOUP_DEPRECATED_IN_2_58_FOR(f)         G_DEPRECATED_FOR(f)
+#else
+# define SOUP_DEPRECATED_IN_2_58
+# define SOUP_DEPRECATED_IN_2_58_FOR(f)
+#endif
+
+#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_58
+# define SOUP_AVAILABLE_IN_2_58                 G_UNAVAILABLE(2, 58) _SOUP_EXTERN
+#else
+# define SOUP_AVAILABLE_IN_2_58                 _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]