...and my Linux doesn't have wcstr.h. (Including of those files should be
authorOve Kaaven <ovek@arcticnet.no>
Tue, 20 Apr 1999 11:05:16 +0000 (11:05 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Tue, 20 Apr 1999 11:05:16 +0000 (11:05 +0000)
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

index dea159f83382d6cbbde7767917aafce0836e39c0..67d23526d62eab381b6226350f254ecd717e7904 100644 (file)
 #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
@@ -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