X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff8fda36178e5d44b402757dcdc5a2bb54e52b7d..22385679c4c3ba8d836611a314e2e05710097cda:/src/mac/utils.cpp

diff --git a/src/mac/utils.cpp b/src/mac/utils.cpp
index 41da489e3b..2e2ffd6c4a 100644
--- a/src/mac/utils.cpp
+++ b/src/mac/utils.cpp
@@ -29,6 +29,11 @@
 #include "MoreFiles.h"
 #include "MoreFilesExtras.h"
 
+#ifndef __DARWIN__
+#include <Threads.h>
+#include <Sound.h>
+#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
 //
@@ -465,3 +483,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
+}
+