From 908cafa2e2ead585d2da4576a77fa89872982034 Mon Sep 17 00:00:00 2001 From: riderkick Date: Fri, 12 Jun 2015 12:49:22 +0800 Subject: [PATCH] add ifdef windows --- baseunits/uBaseUnit.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/baseunits/uBaseUnit.pas b/baseunits/uBaseUnit.pas index 38fa4c096..7c90db7d6 100644 --- a/baseunits/uBaseUnit.pas +++ b/baseunits/uBaseUnit.pas @@ -3568,6 +3568,7 @@ function RunExternalProcessAsAdmin(Exe, Params: String; ShowWind: Boolean; {$ENDIF} end; +{$ifdef windows} function WinRunProcessA(Exe, Params: string; ShowWind: Boolean; isPersistent: Boolean): Boolean; var SEInfo: TSHELLEXECUTEINFOA; @@ -3615,6 +3616,7 @@ function WinRunProcessW(Exe, Params: string; ShowWind: Boolean; isPersistent: Bo if isPersistent then WaitForSingleObject(SEInfo.hProcess, INFINITE); end; +{$endif} function RunExternalProcess(Exe: String; Params: array of string; ShowWind: Boolean; isPersistent: Boolean): Boolean;