X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05718a98f995d8797bbf319b396d21dfcc31a33c..76c66f195356ba96d37ff95f7a0289fcb0769f9f:/src/unix/utilsunx.cpp diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 823a853b25..7e8b8f23d5 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -382,6 +382,7 @@ public: } } +#if wxUSE_UNICODE ArgsArray(wchar_t **wargv) { int argc = 0; @@ -395,6 +396,7 @@ public: m_argv[i] = wxSafeConvertWX2MB(wargv[i]).release(); } } +#endif // wxUSE_UNICODE ~ArgsArray() { @@ -419,7 +421,7 @@ private: int m_argc; char **m_argv; - DECLARE_NO_COPY_CLASS(ArgsArray); + DECLARE_NO_COPY_CLASS(ArgsArray) }; } // anonymous namespace @@ -491,6 +493,8 @@ long wxExecute(const wxString& command, int flags, wxProcess *process) return wxExecute(argv, flags, process); } +#if wxUSE_UNICODE + long wxExecute(wchar_t **wargv, int flags, wxProcess *process) { ArgsArray argv(wargv); @@ -498,6 +502,8 @@ long wxExecute(wchar_t **wargv, int flags, wxProcess *process) return wxExecute(argv, flags, process); } +#endif // wxUSE_UNICODE + // wxExecute: the real worker function long wxExecute(char **argv, int flags, wxProcess *process) {