performed in wxchar.h now anyway)
Also encapsulated wxWCharBuffer in #if wxUSE_WCHAR_T
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2250
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/wxchar.h"
#include <string.h> // strdup
-#ifdef HAVE_WCSTR_H
-#include <wcstr.h>
-#elif defined( HAVE_WCHAR_H )
-#include <wchar.h> // wchar_t
-#else
-#pragma error "Don't know what to do!"
-#endif
-
// ----------------------------------------------------------------------------
// Special classes for (wide) character strings: they use malloc/free instead
// of new/delete
char *m_str;
};
+#if wxUSE_WCHAR_T
class wxWCharBuffer
{
public:
private:
wchar_t *m_wcs;
};
+#endif
#if wxUSE_UNICODE
#define wxMB2WXbuf wxWCharBuffer