Fix no-Unicode build
This commit is contained in:
parent
412c24342b
commit
052ce4e4d0
1 changed files with 2 additions and 0 deletions
|
|
@ -202,6 +202,7 @@ void utf8_print(char* out, int c) {
|
||||||
out[i++] = 0;
|
out[i++] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef UTF8
|
||||||
int unicode_to_eucjp(int utf) {
|
int unicode_to_eucjp(int utf) {
|
||||||
if(0 <= utf && utf <= 0xffff) {
|
if(0 <= utf && utf <= 0xffff) {
|
||||||
const T_U2E_BITMAP_INDEX* b = &utf16_to_euc_jp_table[(utf >> 8) & 0xff];
|
const T_U2E_BITMAP_INDEX* b = &utf16_to_euc_jp_table[(utf >> 8) & 0xff];
|
||||||
|
|
@ -221,3 +222,4 @@ int unicode_to_eucjp(int utf) {
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue