X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..99ab3e3f56ab43fe1127eb565cad1a619cad0499:/include/wx/encconv.h diff --git a/include/wx/encconv.h b/include/wx/encconv.h index 13dc535342..7b9589f355 100644 --- a/include/wx/encconv.h +++ b/include/wx/encconv.h @@ -10,11 +10,14 @@ #ifndef _WX_ENCCONV_H_ #define _WX_ENCCONV_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "encconv.h" #endif #include "wx/defs.h" + +#if wxUSE_FONTMAP + #include "wx/object.h" #include "wx/fontenc.h" #include "wx/dynarray.h" @@ -44,7 +47,7 @@ enum // types // ---------------------------------------------------------------------------- -WX_DEFINE_ARRAY(wxFontEncoding, wxFontEncodingArray); +WX_DEFINE_ARRAY_INT(wxFontEncoding, wxFontEncodingArray); //-------------------------------------------------------------------------------- // wxEncodingConverter @@ -59,7 +62,7 @@ class WXDLLEXPORT wxEncodingConverter : public wxObject wxEncodingConverter(); ~wxEncodingConverter() { if (m_Table) delete[] m_Table; } - // Initialize convertion. Both output or input encoding may + // Initialize conversion. Both output or input encoding may // be wxFONTENCODING_UNICODE, but only if wxUSE_WCHAR_T is set to 1. // // All subsequent calls to Convert() will interpret it's argument @@ -147,5 +150,6 @@ class WXDLLEXPORT wxEncodingConverter : public wxObject }; +#endif // wxUSE_FONTMAP #endif // _WX_ENCCONV_H_