-#ifdef wxSTD_STRING_COMPATIBILITY
- const size_t wxString::npos = wxSTRING_MAXLEN;
-#endif // wxSTD_STRING_COMPATIBILITY
-
-// ----------------------------------------------------------------------------
-// static data
-// ----------------------------------------------------------------------------
-
-// for an empty string, GetStringData() will return this address: this
-// structure has the same layout as wxStringData and it's data() method will
-// return the empty string (dummy pointer)
-static const struct
-{
- wxStringData data;
- char dummy;
-} g_strEmpty = { {-1, 0, 0}, '\0' };
-
-// empty C style string: points to 'string data' byte of g_strEmpty
-extern const char WXDLLEXPORT *g_szNul = &g_strEmpty.dummy;
-
-// ----------------------------------------------------------------------------
-// conditional compilation
-// ----------------------------------------------------------------------------
-
-// we want to find out if the current platform supports vsnprintf()-like
-// function: for Unix this is done with configure, for Windows we test the
-// compiler explicitly.
-#ifdef __WXMSW__
- #ifdef __VISUALC__
- #define wxVsprintf _vsnprintf
- #endif
-#else // !Windows
- #ifdef HAVE_VSNPRINTF
- #define wxVsprintf vsnprintf
- #endif
-#endif // Windows/!Windows
-
-#ifndef wxVsprintf
- // in this case we'll use vsprintf() (which is ANSI and thus should be
- // always available), but it's unsafe because it doesn't check for buffer
- // size - so give a warning
- #define wxVsprintf(buffer,len,format,argptr) vsprintf(buffer,format, argptr)
-#if defined(__VISUALC__)
- #pragma message("Using sprintf() because no snprintf()-like function defined")
-#elif defined(__GNUG__)
- #warning "Using sprintf() because no snprintf()-like function defined"
-#elif defined(__MWERKS__)
- #warning "Using sprintf() because no snprintf()-like function defined"
-#elif defined(__WATCOMC__)
- // No warning
-#elif defined(__BORLANDC__)
- // No warning
-#elif defined(__SUNCC__)
- // nothing -- I don't know about "#warning" for Sun's CC
-#elif defined(__DECCXX)
- // nothing
-#else
- // change this to some analogue of '#warning' for your compiler
- #error "Using sprintf() because no snprintf()-like function defined"
-#endif //compiler
-
-#endif // no vsnprintf