use wx/crt.h as the 'official' header for wxCRT wrappers instead of wxchar.h; add comments explaining that users should include wx/crt.h to implementation headers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-06-11 06:08:13 +00:00
parent b724bafee0
commit 3a3dde0d44
16 changed files with 29 additions and 21 deletions

View File

@@ -20,7 +20,7 @@
#pragma hdrstop
#endif
#include "wx/wxchar.h"
#include "wx/crt.h"
#define _ISOC9X_SOURCE 1 // to get vsscanf()
#define _BSD_SOURCE 1 // to still get strdup()
@@ -90,7 +90,7 @@ size_t WXDLLEXPORT wxMB2WC(wchar_t *buf, const char *psz, size_t n)
// to just get the size of the needed buffer -- this is needed as otherwise
// we have no idea about how much space we need and if the CRT doesn't
// support it (the only currently known example being Metrowerks, see
// wx/wxchar.h) we don't use its mbstowcs() at all
// wx/crt.h) we don't use its mbstowcs() at all
#ifdef HAVE_WCSRTOMBS
return mbsrtowcs((wchar_t *) NULL, &psz, 0, &mbstate);
#else