From: Chris Elliott Date: Tue, 10 Feb 2004 15:04:30 +0000 (+0000) Subject: fix for non-unicode DMC builds X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d8339072302116b4b5b489c0304bb313001144a5 fix for non-unicode DMC builds git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 180062a19e..5ca84cdbe1 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -304,15 +304,18 @@ #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