From: Julian Smart Date: Thu, 8 Jan 2004 07:41:36 +0000 (+0000) Subject: Applied patch [ 871762 ] Solution to losing strings in Open Watcom X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d5ae6695be715931791fb723592da08d3585cee Applied patch [ 871762 ] Solution to losing strings in Open Watcom git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 91837e70a9..1435071a50 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -71,7 +71,7 @@ /* non Unix compilers which do have wchar.h (but not tchar.h which is included */ /* below and which includes wchar.h anyhow). */ /* Actually MinGW has tchar.h, but it does not include wchar.h */ -#if defined(__MWERKS__) || defined(__VISAGECPP__) || defined(__MINGW32__) +#if defined(__MWERKS__) || defined(__VISAGECPP__) || defined(__MINGW32__) || defined(__WATCOMC__) #ifndef HAVE_WCHAR_H #define HAVE_WCHAR_H #endif @@ -701,6 +701,10 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */ #define HAVE_WCSRTOMBS 1 #define HAVE_VSWPRINTF 1 #endif + #if defined(__WATCOMC__) + #define wxVsnprintf_ _vsnwprintf + #define wxSnprintf_ _snwprintf + #endif #if defined(HAVE__VSNWPRINTF) #define wxVsnprintf_ _vsnwprintf /* MinGW?MSVCRT has the wrong vswprintf */ @@ -710,7 +714,7 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */ #else /* ASCII */ /* all versions of CodeWarrior supported by wxWindows apparently have */ /* vsnprintf() */ - #if defined(HAVE_VSNPRINTF) || defined(__MWERKS__) + #if defined(HAVE_VSNPRINTF) || defined(__MWERKS__) || defined(__WATCOMC__) /* assume we have snprintf() too if we have vsnprintf() */ #define wxVsnprintf_ vsnprintf #define wxSnprintf_ snprintf