]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/wxchar.h
Update the version number, remove mentioon of the wx.py.wxd module
[wxWidgets.git] / include / wx / wxchar.h
index ad9d3539908f4d82ceb1cee4ffca610c57b750e8..5ca84cdbe121d049b56879ad234f78b3a9195110 100644 (file)
     #define  wxScanf     _tscanf
     #if defined(__DMC__)
         /* Digital Mars adds count to _stprintf (C99) so it does not fit wxWindows needs */
-        /* Instead of it we can use function from MSW api (FIXME: doesn't work) */
-        #ifdef wxUSE_UNICODE
-            #define wxSprintf wsprintfW
+        /* and there is a bug in D Mars tchar.h prior to 8.39.4n, so define as sprintf */
+        /* for non-unicode builds CE */
+        /* Unicode broken 10 Feb 04 Fixme */
+        #if wxUSE_UNICODE
+            #define wxSprintf swprintf
         #else
-            #define wxSprintf wsprintfA
+            #define wxSprintf sprintf
         #endif
     #else
-    #define  wxSprintf   _stprintf
+        #define  wxSprintf   _stprintf
     #endif
+
     #define  wxSscanf    _stscanf
     #define  wxTmpnam    _ttmpnam
     #define  wxUngetc    _tungetc
         #include <wctype.h>
 
         /* this is probably glibc-specific */
-        #if defined(__WCHAR_TYPE__)
+        #if defined(__WCHAR_TYPE__) && !defined(__MWERKS__)
             /* ctype.h functions (wctype.h) */
             #define  wxIsalnum   iswalnum
             #define  wxIsalpha   iswalpha
             #define  wxCtime     wctime
             /* #define  wxStrftime  wcsftime */
 
-            /*
-            #define wxNEED_FPUTWC
-
-            #include <stdio.h>
-
-            int wxFputs(const wxChar *ch, FILE *stream);
-            int wxPutc(wxChar ch, FILE *stream);
-
-            #define wxPuts(ws) wxFputs(ws, stdout)
-            #define wxPutchar(wch) wxPutc(wch, stdout)
-
-            #define wxNEED_PRINTF_CONVERSION
-            #define wxNEED_WX_STDIO_H
-            #define wxNEED_WX_STDLIB_H
-            */
             #define wxNEED_WX_TIME_H
         #else /* !metrowerks for apple */
             #error  "Please define wide character functions for your environment"