#pragma hdrstop
#endif
+#if wxUSE_FONTMAP
+
#include "wx/encconv.h"
#include <stdlib.h>
-static int LINKAGEMODE CompareCharsetItems(const void *i1, const void *i2)
+extern "C" int LINKAGEMODE CompareCharsetItems(const void *i1, const void *i2)
{
return ( ((CharsetItem*)i1) -> u - ((CharsetItem*)i2) -> u );
}
else
{
CharsetItem *rev = BuildReverseTable(out_tbl);
- CharsetItem *item, key;
+ CharsetItem *item;
+ CharsetItem key;
for (i = 0; i < 128; i++)
{
if (item)
m_Table[128 + i] = (tchar)item -> c;
else
- m_Table[128 + i] = 128 + i; // don't know => don't touch
+#if wxUSE_WCHAR_T
+ m_Table[128 + i] = (wchar_t)(128 + i);
+#else
+ m_Table[128 + i] = (char)(128 + i);
+#endif
}
delete[] rev;
return arr;
}
+
+#endif // wxUSE_FONTMAP