build error for --enable-m17n --disable-unicode

* libwc/detect.c (wc_create_detect_map): #ifdef USE_UNICODE
From: Masao Uebayashi <uebayasi@pultek.co.jp>
This commit is contained in:
Fumitoshi UKAI
2004-04-21 16:42:17 +00:00
parent d02cc0c7de
commit 58be2bdb6a
2 changed files with 8 additions and 1 deletions

View File

@@ -63,7 +63,9 @@ wc_create_detect_map(wc_ces ces, wc_bool esc)
for (i = 0; i < 0x20; i++)
WC_DETECT_MAP[i] = 0;
WC_DETECT_MAP[WC_C_HZ_TILDA] = (ces == WC_CES_HZ_GB_2312) ? 1 : 0;
#ifdef USE_UNICODE
WC_DETECT_MAP[WC_C_UTF7_PLUS] = (ces == WC_CES_UTF_7) ? 1 : 0;
#endif
}
detect_ces = ces;
}