build: fix
authorDan Winship <danw@gnome.org>
Sat, 10 Nov 2012 17:13:42 +0000 (12:13 -0500)
committerDan Winship <danw@gnome.org>
Sat, 10 Nov 2012 17:13:42 +0000 (12:13 -0500)
I'd previously applied a fix to soup-version.h rather than
soup-version.h.in, causing it to compile fine for me, but not from a
clean checkout.

libsoup/soup-version.h.in

index f873aa1..4466a48 100644 (file)
@@ -184,6 +184,48 @@ gboolean soup_check_version     (guint major,
 # define SOUP_AVAILABLE_IN_2_36
 #endif
 
+#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_38
+# define SOUP_DEPRECATED_IN_2_38                GLIB_DEPRECATED
+# define SOUP_DEPRECATED_IN_2_38_FOR(f)         GLIB_DEPRECATED_FOR(f)
+#else
+# define SOUP_DEPRECATED_IN_2_38
+# define SOUP_DEPRECATED_IN_2_38_FOR(f)
+#endif
+
+#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_38
+# define SOUP_AVAILABLE_IN_2_38                 GLIB_UNAVAILABLE(2, 38)
+#else
+# define SOUP_AVAILABLE_IN_2_38
+#endif
+
+#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_40
+# define SOUP_DEPRECATED_IN_2_40                GLIB_DEPRECATED
+# define SOUP_DEPRECATED_IN_2_40_FOR(f)         GLIB_DEPRECATED_FOR(f)
+#else
+# define SOUP_DEPRECATED_IN_2_40
+# define SOUP_DEPRECATED_IN_2_40_FOR(f)
+#endif
+
+#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_40
+# define SOUP_AVAILABLE_IN_2_40                 GLIB_UNAVAILABLE(2, 40)
+#else
+# define SOUP_AVAILABLE_IN_2_40
+#endif
+
+#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_42
+# define SOUP_DEPRECATED_IN_2_42                GLIB_DEPRECATED
+# define SOUP_DEPRECATED_IN_2_42_FOR(f)         GLIB_DEPRECATED_FOR(f)
+#else
+# define SOUP_DEPRECATED_IN_2_42
+# define SOUP_DEPRECATED_IN_2_42_FOR(f)
+#endif
+
+#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_42
+# define SOUP_AVAILABLE_IN_2_42                 GLIB_UNAVAILABLE(2, 42)
+#else
+# define SOUP_AVAILABLE_IN_2_42
+#endif
+
 G_END_DECLS
 
 #endif /* SOUP_VERSION_H */