// 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 ) ;
return dest ;
}
#endif
+
+#if (defined(__MWERKS__) && !defined(__MACH__)) || (defined(__WXWINCE__) && _WIN32_WCE <= 211)
+
int isascii( int c )
{
- return ( c >= 0 && c < 128 ) ;
-}
-#endif // __MWERKS__
-
-#ifdef __WXWINCE__
-char* strdup(const char* s)
-{
- char *dest = (char*) malloc( strlen( s ) + 1 ) ;
- if ( dest )
- strcpy( dest , s ) ;
- return dest ;
+ return ( c >= 0 && c < 128 );
}
+#endif
+#if defined(__WXWINCE__)
void *calloc( size_t num, size_t size )
{
void** ptr = (void **)malloc(num * size);
return ptr;
}
+#if (_WIN32_WCE <= 211)
int isspace(int c)
{
return (c == ' ');
}
-
-int isascii( int c )
-{
- return ( c >= 0 && c < 128 ) ;
-}
#endif
-
+#endif