diff --git a/bazaar/Functions4U/Functions4U.h b/bazaar/Functions4U/Functions4U.h index d7cf67b3b..0b644c387 100644 --- a/bazaar/Functions4U/Functions4U.h +++ b/bazaar/Functions4U/Functions4U.h @@ -562,12 +562,12 @@ private: class LocalProcessX { public: LocalProcessX() : status(STOP_OK) {} - enum Status {RUNNING = 1, STOP_OK = 0, STOP_TIMEOUT = -1, STOP_USER = -2}; + enum LPStatus {RUNNING = 1, STOP_OK = 0, STOP_TIMEOUT = -1, STOP_USER = -2}; // name clash with X11 Status bool Start(const char *cmd, const char *envptr = 0, const char *dir = 0, double _refreshTime = -1, double _timeOut = -1, bool convertcharset = true) { p.ConvertCharset(convertcharset); timeElapsed.Reset(); timeToTimeout.Reset(); - if(!p.Start(cmd, envptr, dir)) + if(!p.Start(cmd, envptr/*, dir*/)) return false; status = RUNNING; timeOut = _timeOut; @@ -608,7 +608,7 @@ public: KillTimeCallback(this); #endif } - void Stop(Status _status = STOP_USER) { + void Stop(LPStatus _status = STOP_USER) { if (!IsRunning()) return; status = _status; @@ -627,7 +627,7 @@ public: LocalProcess p; private: TimeStop timeElapsed, timeToTimeout; - Status status; + LPStatus status; double timeOut; double refreshTime; }; diff --git a/bazaar/SysInfo/mousekey.cpp b/bazaar/SysInfo/mousekey.cpp index a3886a075..9852e2cda 100644 --- a/bazaar/SysInfo/mousekey.cpp +++ b/bazaar/SysInfo/mousekey.cpp @@ -1,5 +1,7 @@ #include "SysInfo_in.h" +#ifdef flagXTEST + NAMESPACE_UPP struct KeyCodes { @@ -520,4 +522,6 @@ void Keyb_SendKeys(String text, long finalDelay, long delayBetweenKeys) Sleep(finalDelay); } -END_UPP_NAMESPACE \ No newline at end of file +END_UPP_NAMESPACE + +#endif