X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48f9e8107ae11a0bd952f258feeaf7c2f57324ca..dc484d491b15355285a89da275c58c2ef247d1f4:/include/wx/encinfo.h?ds=sidebyside diff --git a/include/wx/encinfo.h b/include/wx/encinfo.h index a5e7af1b03..49f744bd69 100644 --- a/include/wx/encinfo.h +++ b/include/wx/encinfo.h @@ -5,7 +5,7 @@ // Modified by: // Created: 19.09.2003 (extracted from wx/fontenc.h) // RCS-ID: $Id$ -// Copyright: (c) 2003 Vadim Zeitlin +// Copyright: (c) 2003 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -35,9 +35,14 @@ struct WXDLLEXPORT wxNativeEncodingInfo { wxString facename; // may be empty meaning "any" +#ifndef __WXPALMOS__ wxFontEncoding encoding; // so that we know what this struct represents -#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXMAC__) || defined(__WXCOCOA__) // FIXME: __WXCOCOA__ +#if defined(__WXMSW__) || \ + defined(__WXPM__) || \ + defined(__WXMAC__) || \ + defined(__WXCOCOA__) // FIXME: __WXCOCOA__ + wxNativeEncodingInfo() : facename() , encoding(wxFONTENCODING_SYSTEM) @@ -53,10 +58,12 @@ struct WXDLLEXPORT wxNativeEncodingInfo // seems to be handled internally. #elif defined(__WXMGL__) int mglEncoding; +#elif defined(__WXDFB__) + // DirectFB uses UTF-8 internally, doesn't use font encodings #else #error "Unsupported toolkit" #endif - +#endif // !__WXPALMOS__ // this struct is saved in config by wxFontMapper, so it should know to // serialise itself (implemented in platform-specific code) bool FromString(const wxString& s);