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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user