do use vswprintf() with mingw32 if STLPort >= 5.1 is used (and not msvcrt which defines vswprintf() in a pre-standard way)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3824e0db33
commit
e461247b05
@ -63,12 +63,21 @@
|
||||
#endif
|
||||
|
||||
/*
|
||||
MinGW MSVCRT has non-standard vswprintf() (for MSVC compatibility
|
||||
presumably) and normally _vsnwprintf() is used instead
|
||||
mingw32 normally uses MSVCRT which has non-standard vswprintf() and so
|
||||
normally _vsnwprintf() is used instead, the only exception is when mingw32
|
||||
is used with STLPort which does have a standard vswprintf() starting from
|
||||
version 5.1 which we can use.
|
||||
*/
|
||||
#if defined(HAVE_VSWPRINTF) && defined(__MINGW32__)
|
||||
#ifdef __MINGW32__
|
||||
#if defined(_STLPORT_VERSION) && _STLPORT_VERSION >= 0x510
|
||||
#ifndef HAVE_VSWPRINTF
|
||||
#define HAVE_VSWPRINTF
|
||||
#endif
|
||||
#elif defined(HAVE_VSWPRINTF)
|
||||
/* can't use non-standard vswprintf() */
|
||||
#undef HAVE_VSWPRINTF
|
||||
#endif
|
||||
#endif /* __MINGW32__ */
|
||||
|
||||
#if defined(__WATCOMC__)
|
||||
#define HAVE_VSWPRINTF 1
|
||||
|
Loading…
Reference in New Issue
Block a user