]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixes for previous fixes
authorJulian Smart <julian@anthemion.co.uk>
Sat, 15 Nov 2003 10:26:46 +0000 (10:26 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 15 Nov 2003 10:26:46 +0000 (10:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wxchar.h
src/common/wxchar.cpp

index ecf6f6975322a9bddade474fa1ba598f2121f55d..41ad07a808b2489baf1810613c4596b9774b5791 100644 (file)
@@ -902,10 +902,12 @@ WXDLLIMPEXP_BASE int      wxSystem(const wxChar *psz);
                                   const wxChar *fmt, const struct tm *tm);
 #endif // wxNEED_WX_TIME_H
 
-// missing functions in early WinCE versions
-#if defined(_WIN32_WCE) && (_WIN32_WCE < 300)
-WXDLLIMPEXP_BASE char* strdup(const char* s);
+// missing functions in some WinCE versions
+#ifdef _WIN32_WCE
+#if (_WIN32_WCE < 300)
 WXDLLIMPEXP_BASE void *calloc( size_t num, size_t size );
+#endif
+WXDLLIMPEXP_BASE char* strdup(const char* s);
 
 #if _WIN32_WCE <= 211
 WXDLLIMPEXP_BASE int isspace(int c);
index 11233ff4fd70fe9215b75ab884b0d2b2d3f57ac3..846e7d5058198cf6d5ed0e546cbe47f32ff76408 100644 (file)
@@ -1390,12 +1390,14 @@ int isascii( int c )
 #endif
 
 #if defined(__WXWINCE__)
+#if (_WIN32_WCE < 300)
 void *calloc( size_t num, size_t size )
 {
     void** ptr = (void **)malloc(num * size);
     memset( ptr, 0, num * size);
     return ptr;
 }
+#endif
 
 #if (_WIN32_WCE <= 211)
 int isspace(int c)
@@ -1405,3 +1407,4 @@ int isspace(int c)
 #endif
 
 #endif
+