X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4367345099df9e276e4805147ac40ec3e0349021..8fef2a9b08766582f18a87f675ad574eba58e640:/include/wx/wxchar.h diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 3b34a8f848..d333148792 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -12,7 +12,7 @@ #ifndef _WX_WXCHAR_H_ #define _WX_WXCHAR_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "wxchar.h" #endif @@ -339,8 +339,12 @@ #define wxRemove wxMSLU__tremove #define wxRename wxMSLU__trename #else - #define wxRemove _tremove - #define wxRename _trename + #ifdef __WXWINCE__ + #define wxRemove DeleteFile + #else + #define wxRemove _tremove + #define wxRename _trename + #endif #endif // stdlib.h functions @@ -504,7 +508,7 @@ // time.h functions #define wxAsctime wasciitime #define wxCtime wctime - #define wxStrftime wcsftime + // #define wxStrftime wcsftime /* #define wxNEED_FPUTWC @@ -523,8 +527,8 @@ // use our own versions #define wxNEED_WX_STDIO_H #define wxNEED_WX_STDLIB_H - #define wxNEED_WX_TIME_H */ + #define wxNEED_WX_TIME_H #else // !metrowerks for apple #error "Please define wide character functions for your environment" #endif @@ -576,7 +580,7 @@ #define wxStrxfrm strxfrm // stdio.h functions - #if defined(__WXMAC__) && !defined(__DARWIN__) + #if defined(__WXMAC__) && !defined(__DARWIN__) && !defined(wxUSE_UNICODE) #include WXDLLIMPEXP_BASE FILE * wxFopen(const wxChar *path, const wxChar *mode); WXDLLIMPEXP_BASE FILE * wxFreopen(const wxChar *path, const wxChar *mode, FILE *stream); @@ -923,6 +927,17 @@ WXDLLIMPEXP_BASE int wxSystem(const wxChar *psz); const wxChar *fmt, const struct tm *tm); #endif // wxNEED_WX_TIME_H +// missing functions in WinCE +#ifdef __WXWINCE__ +WXDLLIMPEXP_BASE char* strdup(const char* s); +WXDLLIMPEXP_BASE void *calloc( size_t num, size_t size ); + +#if _WIN32_WCE <= 211 +WXDLLIMPEXP_BASE int isspace(int c); +WXDLLIMPEXP_BASE int isascii( int c ); +#endif +#endif + // ---------------------------------------------------------------------------- // multibyte to wide char conversion functions and macros // ----------------------------------------------------------------------------