From 2b284cd5b749ef32257598476a4581b283c5b21e Mon Sep 17 00:00:00 2001 From: joncruz Date: Mon, 10 Mar 2008 04:10:10 +0000 Subject: [PATCH] Temporary kludge to permit linking --- src/extension/script/InkscapeScript.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 } -- 2.30.2