Fixed MinGW/configure/Unicode compilation: MinGW/MSVCRT vswprintf does not

behave like other vswprintf; under Win32 you really want _vsnwprintf.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2002-09-13 20:23:36 +00:00
parent df93d8bab7
commit 79668caec9
4 changed files with 513 additions and 466 deletions

View File

@@ -576,7 +576,10 @@ WXDLLEXPORT bool wxOKlibc(); // for internal use
*/
#ifndef wxVsnprintf_
#if wxUSE_UNICODE
#if defined(HAVE_VSWPRINTF)
#if defined(HAVE__VSNWPRINTF)
#define wxVsnprintf_ _vsnwprintf
/* MinGW?MSVCRT has the wrong vswprintf */
#elif defined(HAVE_VSWPRINTF) && !defined(__MINGW32__)
#define wxVsnprintf_ vswprintf
#endif
#else // ASCII