fix for non-unicode DMC builds

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott
2004-02-10 15:04:30 +00:00
parent 9cc454c051
commit d833907230

View File

@@ -304,15 +304,18 @@
#define wxScanf _tscanf #define wxScanf _tscanf
#if defined(__DMC__) #if defined(__DMC__)
/* Digital Mars adds count to _stprintf (C99) so it does not fit wxWindows needs */ /* 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) */ /* and there is a bug in D Mars tchar.h prior to 8.39.4n, so define as sprintf */
#ifdef wxUSE_UNICODE /* for non-unicode builds CE */
#define wxSprintf wsprintfW /* Unicode broken 10 Feb 04 Fixme */
#if wxUSE_UNICODE
#define wxSprintf swprintf
#else #else
#define wxSprintf wsprintfA #define wxSprintf sprintf
#endif #endif
#else #else
#define wxSprintf _stprintf #define wxSprintf _stprintf
#endif #endif
#define wxSscanf _stscanf #define wxSscanf _stscanf
#define wxTmpnam _ttmpnam #define wxTmpnam _ttmpnam
#define wxUngetc _tungetc #define wxUngetc _tungetc