fixed non-unicode build

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1120 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-09 16:01:02 +00:00
parent 1654935a4f
commit 80064cf540
2 changed files with 8 additions and 5 deletions
+7 -5
View File
@@ -150,11 +150,13 @@ void CLISetInterface::handleCommand(const String& command) {
if (arg.empty()) {
cli.showError(_("Give a shell command to execute."));
} else {
#ifdef __WXMSW__
_wsystem(arg.c_str());
#elif UNICODE
wxCharBuffer buf = arg.fn_str();
system(buf);
#if UNICODE
#ifdef __WXMSW__
_wsystem(arg.c_str()); // TODO: is this function available on other platforms?
#else
wxCharBuffer buf = arg.fn_str();
system(buf);
#endif
#else
system(arg.c_str());
#endif