From 3938aeffea115076037a86378512cfc81402d50a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 26 Jul 2000 07:01:20 +0000 Subject: Avoided warning on GTK+ because DBCS not supported. --- src/WindowAccessor.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/WindowAccessor.cxx b/src/WindowAccessor.cxx index 96581ef59..5f3deac7d 100644 --- a/src/WindowAccessor.cxx +++ b/src/WindowAccessor.cxx @@ -18,21 +18,22 @@ WindowAccessor::~WindowAccessor() { } +#if PLAT_WIN bool WindowAccessor::InternalIsLeadByte(char ch) { -#if PLAT_GTK - // TODO: support DBCS under GTK+ - return false; -#elif PLAT_WIN if (SC_CP_UTF8 == codePage) // For lexing, all characters >= 0x80 are treated the // same so none is considered a lead byte. return false; else return IsDBCSLeadByteEx(codePage, ch); -#elif PLAT_WX +} +#else +// PLAT_GTK or PLAT_WX +// TODO: support DBCS under GTK+ and WX +bool WindowAccessor::InternalIsLeadByte(char) { return false; -#endif } +#endif void WindowAccessor::Fill(int position) { if (lenDoc == -1) -- cgit v1.2.3