X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4676948b6814c97b93c431a8cbcd8c0352c87ba9..ce39c39e1fb09f3bc4701e6b147f7b47f8ef2146:/src/common/wxchar.cpp?ds=sidebyside

diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp
index 02ca10af2f..e26ea1f3cb 100644
--- a/src/common/wxchar.cpp
+++ b/src/common/wxchar.cpp
@@ -1392,8 +1392,8 @@ WXDLLEXPORT wxChar * wxStrtok(wxChar *psz, const wxChar *delim, wxChar **save_pt
 // missing C RTL functions
 // ----------------------------------------------------------------------------
 
-#if defined( __MWERKS__ ) && !defined(__MACH__)
-#if __MSL__ < 0x00008000
+#if (defined(__MWERKS__) && !defined(__MACH__) && (__MSL__ < 0x00008000)) || \
+     defined(__WXWINCE__)
 char *strdup(const char *s)
 {
     char *dest = (char*) malloc( strlen( s ) + 1 ) ;
@@ -1402,9 +1402,24 @@ char *strdup(const char *s)
     return dest ;
 }
 #endif
+
+#if (defined(__MWERKS__) && !defined(__MACH__)) || defined(__WXWINCE__)
 int isascii( int c )
 {
-        return ( c >= 0 && c < 128 ) ;
+    return ( c >= 0 && c < 128 );
+}
+#endif
+
+#if defined(__WXWINCE__)
+void *calloc( size_t num, size_t size )
+{
+    void** ptr = (void **)malloc(num * size);
+    memset( ptr, 0, num * size);
+    return ptr;
 }
-#endif // __MWERKS__
 
+int isspace(int c)
+{
+    return (c == ' ');
+}
+#endif