summaryrefslogtreecommitdiff
path: root/src/xutf8/lcUniConv/koi8_r.h
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-12-15 14:07:43 +0000
committerManolo Gouy <Manolo>2010-12-15 14:07:43 +0000
commit6e3bb7b24deb332eb33d96d071bb0d6ec377ee8e (patch)
treefbc5bb3290f1a27de185da290ec8b977dfa404ba /src/xutf8/lcUniConv/koi8_r.h
parentff1d7b6dad3d6fb3301a1d5b55a2febc2d3bba49 (diff)
Fix STR # 2481: removed compilation warnings.
Files utf8Input.c and utf8Wrap.c (via ucs2fontmap.c that's included) need a different half of each of these input files. What is in the other half is unused and thus triggers a compilation warning. This has been fixed by adding #define NEED_TOWC in utf8Input.c and #define NEED_TOMB in ucs2fontmap.c and by bracketting the first half of these include files by #ifdef NEED_TOWC/#endif and the second half by #ifdef NEED_TOMB/#endif. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8038 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/xutf8/lcUniConv/koi8_r.h')
-rw-r--r--src/xutf8/lcUniConv/koi8_r.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xutf8/lcUniConv/koi8_r.h b/src/xutf8/lcUniConv/koi8_r.h
index a0d3d9b26..887979535 100644
--- a/src/xutf8/lcUniConv/koi8_r.h
+++ b/src/xutf8/lcUniConv/koi8_r.h
@@ -6,6 +6,7 @@
/* Specification: RFC 1489 */
+#ifdef NEED_TOWC
static const unsigned short koi8_r_2uni[128] = {
/* 0x80 */
0x2500, 0x2502, 0x250c, 0x2510, 0x2514, 0x2518, 0x251c, 0x2524,
@@ -43,7 +44,9 @@ koi8_r_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n)
*pwc = (ucs4_t) koi8_r_2uni[c-0x80];
return 1;
}
+#endif // NEED_TOWC
+#ifdef NEED_TOMB
static const unsigned char koi8_r_page00[88] = {
0x9a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa0-0xa7 */
0x00, 0xbf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa8-0xaf */
@@ -133,3 +136,4 @@ koi8_r_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
}
return RET_ILSEQ;
}
+#endif // NEED_TOMB