X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02c92ad972ebc51001dddfd930e6811ab7901483..867f2ca48e6c653ed3f1c29677e283428bcf90c3:/src/common/encconv.cpp?ds=sidebyside diff --git a/src/common/encconv.cpp b/src/common/encconv.cpp index f96e30896c..d6d4dd5a54 100644 --- a/src/common/encconv.cpp +++ b/src/common/encconv.cpp @@ -18,8 +18,6 @@ #pragma hdrstop #endif -#if wxUSE_FONTMAP - #include "wx/encconv.h" #include @@ -38,10 +36,13 @@ #endif #ifdef __WXMAC__ - #include - #include - #include - +#ifdef __DARWIN__ +#include +#else +#include +#include +#include +#endif #include "wx/fontutil.h" #include "wx/mac/private.h" // includes mac headers @@ -206,7 +207,7 @@ bool wxEncodingConverter::Init(wxFontEncoding input_enc, wxFontEncoding output_e } -#define REPLACEMENT_CHAR (tchar('?')) +#define REPLACEMENT_CHAR ((tchar)'?') inline tchar GetTableValue(const tchar *table, tchar value, bool& repl) { @@ -530,4 +531,3 @@ wxFontEncodingArray wxEncodingConverter::GetAllEquivalents(wxFontEncoding enc) return arr; } -#endif // wxUSE_FONTMAP