git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25736
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define wxPuts _putts
#define wxScanf _tscanf
#if defined(__DMC__)
#define wxPuts _putts
#define wxScanf _tscanf
#if defined(__DMC__)
- /* Digital Mars adds count to _stprintf (C99) so it does not fit wxWindows needs */
- /* 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 */
- #define wxSprintf swprintf
+ /* Digital Mars adds count to _stprintf (C99) so prototype conversion see wxchar.cpp */
+ int wxSprintf (wchar_t * __RESTRICT s, const wchar_t * __RESTRICT format, ... ) ;
+ /* and there is a bug in D Mars tchar.h prior to 8.39.4n, so define as sprintf */
#define wxSprintf sprintf
#endif
#else
#define wxSprintf sprintf
#endif
#else
+#if defined(__DMC__)
+ /* Digital Mars adds count to _stprintf (C99) so convert */
+ #if wxUSE_UNICODE
+ int wxSprintf (wchar_t * __RESTRICT s, const wchar_t * __RESTRICT format, ... )
+ {
+ va_list arglist;
+
+ va_start( arglist, format );
+ int iLen = swprintf ( s, -1, format, arglist );
+ va_end( arglist );
+ return iLen ;
+ }
+
+ #endif // wxUSE_UNICODE
+
+#endif //__DMC__
+
// ----------------------------------------------------------------------------
// implement the standard IO functions for wide char if libc doesn't have them
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// implement the standard IO functions for wide char if libc doesn't have them
// ----------------------------------------------------------------------------