aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-download.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-04-26 20:01:39 +0800
committerChristian Persch <chpe@src.gnome.org>2005-04-26 20:01:39 +0800
commitcf8d507e4c6272a5e3f1b2a65724f1938d7d246d (patch)
tree9e53ce6bfc5eab160d37fb094b99bb4df5bdd862 /embed/mozilla/mozilla-download.cpp
parentdbf352aded24013b511267d19c82fa017846ea73 (diff)
downloadgsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar
gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar.gz
gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar.bz2
gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar.lz
gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar.xz
gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar.zst
gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.zip
Ged rid of all API checks which check for 1.8-only API, and introduce a
2005-04-26 Christian Persch <chpe@cvs.gnome.org> * configure.ac: Ged rid of all API checks which check for 1.8-only API, and introduce a Gecko version check instead. * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: * embed/mozilla/EventContext.cpp: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-download.cpp: Fix for mozilla API change, and use the new HAVE_GECKO_1_8 define where appropriate.
Diffstat (limited to 'embed/mozilla/mozilla-download.cpp')
-rw-r--r--embed/mozilla/mozilla-download.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-download.cpp b/embed/mozilla/mozilla-download.cpp
index 6d0c5121b..5a412e086 100644
--- a/embed/mozilla/mozilla-download.cpp
+++ b/embed/mozilla/mozilla-download.cpp
@@ -30,6 +30,7 @@
#undef MOZILLA_INTERNAL_API
#include <nsEmbedString.h>
#define MOZILLA_INTERNAL_API 1
+#include <nsILocalFile.h>
#include <nsMemory.h>
static void mozilla_download_class_init (MozillaDownloadClass *klass);
@@ -187,7 +188,7 @@ impl_get_mime (EphyDownload *download)
mozDownload->GetMIMEInfo (getter_AddRefs(mime));
if (!mime) return g_strdup ("application/octet-stream");
-#ifdef MOZ_NSIMIMEINFO_NSACSTRING_
+#ifdef HAVE_GECKO_1_8
mime->GetMIMEType(mimeType);
#else
char *tmp = nsnull;