X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff8fda36178e5d44b402757dcdc5a2bb54e52b7d..db0ff83efbd6105c04d5ab84c85094e887e97b9a:/src/mac/utils.cpp?ds=inline diff --git a/src/mac/utils.cpp b/src/mac/utils.cpp index 41da489e3b..4cd5021df4 100644 --- a/src/mac/utils.cpp +++ b/src/mac/utils.cpp @@ -29,6 +29,11 @@ #include "MoreFiles.h" #include "MoreFilesExtras.h" +#ifndef __DARWIN__ +#include +#include +#endif + #ifndef __DARWIN__ // defined in unix/utilsunx.cpp for Mac OS X @@ -106,12 +111,25 @@ bool wxGetUserName(char *buf, int maxSize) return TRUE; } -int wxKill(long pid, wxSignal sig) +int wxKill(long pid, wxSignal sig , wxKillError *rc ) { // TODO return 0; } +WXDLLEXPORT bool wxGetEnv(const wxString& var, wxString *value) +{ + // TODO : under classic there is no environement support, under X yes + return false ; +} + +// set the env var name to the given value, return TRUE on success +WXDLLEXPORT bool wxSetEnv(const wxString& var, const wxChar *value) +{ + // TODO : under classic there is no environement support, under X yes + return false ; +} + // // Execute a program in an Interactive Shell // @@ -146,6 +164,8 @@ void wxFlushEvents() { } +#if WXWIN_COMPATIBILITY_2_2 + // Output a debug message, in a system dependent fashion. void wxDebugMsg(const char *fmt ...) { @@ -180,6 +200,9 @@ void wxFatalError(const wxString& msg, const wxString& title) wxMessageBox(wxBuffer); wxExit(); } + +#endif // WXWIN_COMPATIBILITY_2_2 + #endif // !__DARWIN__ // Emit a beeeeeep @@ -465,3 +488,14 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt) { return wxGenericFindWindowAtPoint(pt); } + +wxString wxGetOsDescription() +{ +#ifdef WXWIN_OS_DESCRIPTION + // use configure generated description if available + return wxString("MacOS (") + WXWIN_OS_DESCRIPTION + wxString(")"); +#else + return "MacOS" ; //TODO:define further +#endif +} +