From 08ccb4e32364758cafd5b9cb10814d76976d2d52 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 30 Sep 2015 11:05:20 +0200 Subject: [PATCH] Build fix refs #10245 --- lib/base/scriptutils.cpp | 2 ++ lib/base/utility.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/base/scriptutils.cpp b/lib/base/scriptutils.cpp index a916e5a0b..31f7ab7c4 100644 --- a/lib/base/scriptutils.cpp +++ b/lib/base/scriptutils.cpp @@ -61,7 +61,9 @@ REGISTER_SAFE_SCRIPTFUNCTION(msi_get_component_path, &ScriptUtils::MsiGetCompone REGISTER_SAFE_SCRIPTFUNCTION(track_parents, &ScriptUtils::TrackParents); REGISTER_SAFE_SCRIPTFUNCTION(escape_shell_cmd, &Utility::EscapeShellCmd); REGISTER_SAFE_SCRIPTFUNCTION(escape_shell_arg, &Utility::EscapeShellArg); +#ifdef _WIN32 REGISTER_SAFE_SCRIPTFUNCTION(escape_create_process_arg, &Utility::EscapeCreateProcessArg); +#endif /* _WIN32 */ String ScriptUtils::CastString(const Value& value) { diff --git a/lib/base/utility.hpp b/lib/base/utility.hpp index 839a5aca8..e0e51d3af 100644 --- a/lib/base/utility.hpp +++ b/lib/base/utility.hpp @@ -103,7 +103,9 @@ public: static String EscapeShellCmd(const String& s); static String EscapeShellArg(const String& s); +#ifdef _WIN32 static String EscapeCreateProcessArg(const String& arg); +#endif /* _WIN32 */ static String EscapeString(const String& s, const String& chars, const bool illegal); static String UnescapeString(const String& s); -- 2.40.0