summaryrefslogtreecommitdiff
path: root/wx+/shell_execute.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
commit0887aee8c54d0ed51bb2031431e2bcdafebb4c6e (patch)
tree69537ceb9787bb25ac363cc4e6cdaf0804d78363 /wx+/shell_execute.h
parent5.12 (diff)
downloadFreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.gz
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.bz2
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.zip
5.13
Diffstat (limited to 'wx+/shell_execute.h')
-rw-r--r--wx+/shell_execute.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/wx+/shell_execute.h b/wx+/shell_execute.h
index 2531c91f..a07f40cb 100644
--- a/wx+/shell_execute.h
+++ b/wx+/shell_execute.h
@@ -7,6 +7,7 @@
#ifndef EXECUTE_HEADER_23482134578134134
#define EXECUTE_HEADER_23482134578134134
+#include <zen/zstring.h>
#include <wx/msgdlg.h>
#ifdef FFS_WIN
@@ -16,7 +17,7 @@
#include <zen/win.h> //includes "windows.h"
//#include <zen/scope_guard.h>
-#elif defined FFS_LINUX
+#elif defined FFS_LINUX || defined FFS_MAC
#include <stdlib.h>
#include <wx/utils.h>
#include <wx/log.h>
@@ -82,7 +83,7 @@ void shellExecute(const Zstring& command, ExecutionType type = EXEC_TYPE_ASYNC)
::CloseHandle(execInfo.hProcess);
}
-#elif defined FFS_LINUX
+#elif defined FFS_LINUX || defined FFS_MAC
if (type == EXEC_TYPE_SYNC)
{
//Posix::system - execute a shell command
bgstack15