#include "wx/wxchar.h"
#include "wx/buffer.h"
+#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
+# undef __BSEXCPT__
+#endif
+
#include <stdlib.h>
#if wxUSE_WCHAR_T
const wxWCharBuffer cMB2WX(const char *psz) const { return cMB2WC(psz); }
const wxCharBuffer cWX2MB(const wchar_t *psz) const { return cWC2MB(psz); }
const wchar_t* cWC2WX(const wchar_t *psz) const { return psz; }
- const wchar_t* cMB2WC(const wchar_t *psz) const { return psz; }
+ const wchar_t* cWX2WC(const wchar_t *psz) const { return psz; }
#else // ANSI
const char* cMB2WX(const char *psz) const { return psz; }
const char* cWX2MB(const char *psz) const { return psz; }
private:
void SetName(const wxChar *charset);
+ // note that we can't use wxString here because of compilation
+ // dependencies: we're included from wx/string.h
wxChar *m_name;
wxCharacterSet *m_cset;
bool m_deferred;
#define wxMBFILES 0
#endif
-#if wxMBFILES
+#if wxMBFILES && wxUSE_UNICODE
#define wxFNCONV(name) wxConvFile.cWX2MB(name)
#define wxFNSTRINGCAST wxMBSTRINGCAST
#else