diff options
| author | Manolo Gouy <Manolo> | 2010-12-15 14:07:43 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-12-15 14:07:43 +0000 |
| commit | 6e3bb7b24deb332eb33d96d071bb0d6ec377ee8e (patch) | |
| tree | fbc5bb3290f1a27de185da290ec8b977dfa404ba /src/xutf8/lcUniConv/big5.h | |
| parent | ff1d7b6dad3d6fb3301a1d5b55a2febc2d3bba49 (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/big5.h')
| -rw-r--r-- | src/xutf8/lcUniConv/big5.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xutf8/lcUniConv/big5.h b/src/xutf8/lcUniConv/big5.h index deff86692..a2939bf08 100644 --- a/src/xutf8/lcUniConv/big5.h +++ b/src/xutf8/lcUniConv/big5.h @@ -3,7 +3,7 @@ /* * BIG5 */ - +#ifdef NEED_TOWC static const unsigned short big5_2uni_pagea1[6121] = { /* 0xa1 */ 0x3000, 0xff0c, 0x3001, 0x3002, 0xff0e, 0x2022, 0xff1b, 0xff1a, @@ -1880,7 +1880,9 @@ big5_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n) } return RET_ILSEQ; } +#endif // NEED_TOWC +#ifdef NEED_TOMB static const unsigned short big5_2charset[13703] = { 0xa246, 0xa247, 0xa244, 0xa1b1, 0xa258, 0xa1d3, 0xa150, 0xa1d1, 0xa1d2, 0xa3be, 0xa3bc, 0xa3bd, 0xa3bf, 0xa3bb, 0xa344, 0xa345, @@ -4140,3 +4142,4 @@ big5_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) } return RET_TOOSMALL; } +#endif // NEED_TOMB |
