From 7a3e402c11cee61059e515e8a82d52fe285e69b7 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Tue, 20 Apr 1999 11:05:16 +0000 Subject: [PATCH] ...and my Linux doesn't have wcstr.h. (Including of those files should be 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/buffer.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/include/wx/buffer.h b/include/wx/buffer.h index dea159f833..67d23526d6 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -17,14 +17,6 @@ #include "wx/wxchar.h" #include // strdup -#ifdef HAVE_WCSTR_H -#include -#elif defined( HAVE_WCHAR_H ) -#include // 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 @@ -67,6 +59,7 @@ private: char *m_str; }; +#if wxUSE_WCHAR_T class wxWCharBuffer { public: @@ -109,6 +102,7 @@ public: private: wchar_t *m_wcs; }; +#endif #if wxUSE_UNICODE #define wxMB2WXbuf wxWCharBuffer -- 2.47.2