tests: fix compilation of souphttpsrc test for libsoup 2.40
authorTim-Philipp Müller <tim@centricular.com>
Wed, 7 May 2014 12:23:50 +0000 (13:23 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 7 May 2014 12:27:10 +0000 (13:27 +0100)
SOUP_CHECK_VERSION was only added in 2.41, but we only
depend on 2.40.

https://bugzilla.gnome.org/show_bug.cgi?id=727329

tests/check/elements/souphttpsrc.c

index 4a275d5d4b2bca7e0ca180681f68cdcd55751666..13c0aca1275f21f918052035c858791e5383ee2e 100644 (file)
 
 #include <glib.h>
 #include <glib/gprintf.h>
-#include <libsoup/soup-address.h>
-#include <libsoup/soup-message.h>
-#include <libsoup/soup-misc.h>
-#include <libsoup/soup-server.h>
-#include <libsoup/soup-auth-domain.h>
-#include <libsoup/soup-auth-domain-basic.h>
-#include <libsoup/soup-auth-domain-digest.h>
-#include <libsoup/soup-version.h>
+#include <libsoup/soup.h>
 #include <gst/check/gstcheck.h>
 
-#if !(SOUP_CHECK_VERSION(2, 44, 0))
+#if !defined(SOUP_CHECK_VERSION) || !SOUP_CHECK_VERSION(2, 44, 0)
 #define SoupStatus SoupKnownStatusCode
 #endif