-#include "ATSUnicode.h"
-#include "TextCommon.h"
-#include "TextEncodingConverter.h"
-
-#include "wx/mac/private.h" // includes mac headers
-
-typedef struct {
- wxFontEncoding enc ;
- TextEncodingBase mac ;
-} MacCP ;
-
-MacCP gMacCodePages[] =
-{
- wxFONTENCODING_MACROMAN, kTextEncodingMacRoman,
- wxFONTENCODING_MACCENTRALEUR, kTextEncodingMacCentralEurRoman,
- wxFONTENCODING_MACHEBREW, kTextEncodingMacHebrew,
- wxFONTENCODING_MACGREEK, kTextEncodingMacGreek,
- wxFONTENCODING_MACARABIC, kTextEncodingMacArabic,
- wxFONTENCODING_MACTURKISH, kTextEncodingMacTurkish,
- wxFONTENCODING_MACCYRILLIC, kTextEncodingMacCyrillic,
-} ;
-
-wxUint16 gMacEncodings[WXSIZEOF(gMacCodePages)][128] ;
-bool gMacEncodingsInited[WXSIZEOF(gMacCodePages)] ;
+ wxUint16 gMacEncodings[wxFONTENCODING_MACMAX-wxFONTENCODING_MACMIN+1][128] ;
+ bool gMacEncodingsInited[wxFONTENCODING_MACMAX-wxFONTENCODING_MACMIN+1] ;
+#endif