vsprintf() is ANSI so there is normally no need to test for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -102,22 +102,19 @@ extern const char *g_szNul = &g_strEmpty.dummy;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define wxVsprintf _vsnprintf
|
#define wxVsprintf _vsnprintf
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#if defined ( HAVE_VSNPRINTF )
|
#if defined ( HAVE_VSNPRINTF )
|
||||||
#define wxVsprintf vsnprintf
|
#define wxVsprintf vsnprintf
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef wxVsprintf
|
#ifndef wxVsprintf
|
||||||
#ifdef HAVE_VPRINTF
|
// vsprintf() is ANSI so we can always use it, but it's unsafe!
|
||||||
#define wxVsprintf(buffer,len,format,argptr) vsprintf(buffer,format, argptr)
|
#define wxVsprintf(buffer,len,format,argptr) vsprintf(buffer,format, argptr)
|
||||||
#pragma message("Using sprintf() because no snprintf()-like function defined")
|
#pragma message("Using sprintf() because no snprintf()-like function defined")
|
||||||
#else
|
|
||||||
#pragma error("No vsnprintf() or vsprintf() function available.")
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NAMESPACE istream& operator>>(NAMESPACE istream& is, wxString& WXUNUSED(str))
|
NAMESPACE istream& operator>>(NAMESPACE istream& is, wxString& WXUNUSED(str))
|
||||||
|
Reference in New Issue
Block a user