fix wxExecute() compilation in ANSI build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-03-24 23:13:12 +00:00
parent d2aa927a57
commit d7ef641d4e
3 changed files with 14 additions and 2 deletions

View File

@@ -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()
{
@@ -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)
{