#include "katze-http-auth.h"
-#if HAVE_LIBSOUP
- #include <libsoup/soup.h>
-#endif
-
+#include <libsoup/soup.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
GObjectClass parent_class;
};
-#if HAVE_LIBSOUP
static void
katze_http_auth_session_feature_iface_init (SoupSessionFeatureInterface *iface,
gpointer data);
iface->attach = katze_http_auth_attach;
iface->detach = katze_http_auth_detach;
}
-#else
-G_DEFINE_TYPE (KatzeHttpAuth, katze_http_auth, G_TYPE_OBJECT)
-#endif
static void
katze_http_auth_class_init (KatzeHttpAuthClass* class)
#include "katze-http-cookies.h"
-#if HAVE_LIBSOUP
- #include <libsoup/soup.h>
-#endif
-
#include <stdlib.h>
-#include <gtk/gtk.h>
#include <glib/gi18n.h>
+#include <libsoup/soup.h>
+#include <gtk/gtk.h>
struct _KatzeHttpCookies
{
GObjectClass parent_class;
};
-#if HAVE_LIBSOUP
static void
katze_http_cookies_session_feature_iface_init (SoupSessionFeatureInterface *iface,
gpointer data);
G_IMPLEMENT_INTERFACE (SOUP_TYPE_SESSION_FEATURE,
katze_http_cookies_session_feature_iface_init));
-#if HAVE_LIBSOUP_2_25_2
-
/* Cookie jar saving to Mozilla format
Copyright (C) 2008 Xan Lopez <xan@gnome.org>
Copyright (C) 2008 Dan Winship <danw@gnome.org>
g_signal_handlers_disconnect_by_func (session,
katze_http_cookies_session_request_queued_cb, feature);
}
-#endif
static void
katze_http_cookies_session_feature_iface_init (SoupSessionFeatureInterface *iface,
gpointer data)
{
- #if HAVE_LIBSOUP_2_25_2
iface->attach = katze_http_cookies_attach;
iface->detach = katze_http_cookies_detach;
- #endif
}
-#else
-G_DEFINE_TYPE (KatzeHttpCookies, katze_http_cookies, G_TYPE_OBJECT)
-#endif
static void
katze_http_cookies_class_init (KatzeHttpCookiesClass* class)