From: joncruz Date: Mon, 10 Mar 2008 04:10:10 +0000 (+0000) Subject: Temporary kludge to permit linking X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2b284cd5b749ef32257598476a4581b283c5b21e;p=inkscape.git Temporary kludge to permit linking --- diff --git a/src/extension/script/InkscapeScript.cpp b/src/extension/script/InkscapeScript.cpp index 3007df39f..d5e694f3a 100644 --- a/src/extension/script/InkscapeScript.cpp +++ b/src/extension/script/InkscapeScript.cpp @@ -12,8 +12,9 @@ #include "InkscapeScript.h" -#include +#undef USE_JAVA +#include namespace Inkscape @@ -58,6 +59,7 @@ bool InkscapeScript::interpretScript(const Glib::ustring &script, Glib::ustring &error, ScriptLanguage language) { +#if USE_JAVA const char *langname=NULL; //if() instead of switch() lets us scope vars if (language == InkscapeScript::JAVASCRIPT) @@ -106,6 +108,9 @@ bool InkscapeScript::interpretScript(const Glib::ustring &script, } return true; +#else // USE_JAVA + return false; +#endif // USE_JAVA } @@ -120,6 +125,7 @@ bool InkscapeScript::interpretFile(const Glib::ustring &fname, Glib::ustring &error, ScriptLanguage language) { +#if USE_JAVA const char *langname=NULL; //if() instead of switch() lets us scope vars if (language == InkscapeScript::JAVASCRIPT) @@ -166,8 +172,11 @@ bool InkscapeScript::interpretFile(const Glib::ustring &fname, g_warning("interpretFile: failed\n"); return false; } - + return true; +#else // USE_JAVA + return false; +#endif // USE_JAVA }