From: theadib Date: Wed, 8 Aug 2007 08:33:50 +0000 (+0000) Subject: prevent file_save_remote to break build on system without GNOME_VFS X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=297cd3386afc582bfa0d638513c89315434dd6ea;p=inkscape.git prevent file_save_remote to break build on system without GNOME_VFS --- diff --git a/src/file.cpp b/src/file.cpp index d5f0c6f6e..92df59065 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -566,7 +566,6 @@ file_save_local(Gtk::Window &parentWindow, SPDocument *doc, const Glib::ustring -#ifdef WITH_GNOME_VFS /* * Used only for remote saving using VFS and a specific uri. Gets the file at the /tmp. @@ -575,6 +574,7 @@ bool file_save_remote(SPDocument *doc, const Glib::ustring &uri, Inkscape::Extension::Extension *key, bool saveas, bool official) { +#ifdef WITH_GNOME_VFS #define BUF_SIZE 8192 gnome_vfs_init(); @@ -652,9 +652,13 @@ file_save_remote(SPDocument *doc, const Glib::ustring &uri, } return true; -} +#else + // in case we do not have GNOME_VFS + return false; #endif +} + /** * Display a SaveAs dialog. Save the document if OK pressed.