]> sourceware.org Git - newlib-cygwin.git/blob - newlib/libc/iconv/lib/deps.h
2004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
[newlib-cygwin.git] / newlib / libc / iconv / lib / deps.h
1 /*
2 * Copyright (c) 2003, Artem B. Bityuckiy, SoftMine Corporation.
3 * Rights transferred to Franklin Electronic Publishers.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26 #ifdef ENABLE_ICONV
27
28 #ifndef __ICONV_DEPS_H__
29 #define __ICONV_DEPS_H__
30
31 /*
32 * EUC-JP requires us_ascii, jis_x0208_1983, jis_x0201, jis_x0212_1990
33 */
34 #ifdef ICONV_CONVERTER_EUC_JP
35 # ifndef ICONV_CONVERTER_US_ASCII
36 # define ICONV_CONVERTER_US_ASCII
37 # endif
38 # ifndef ICONV_CONVERTER_JIS_X0208_1983
39 # define ICONV_CONVERTER_JIS_X0208_1983
40 # endif
41 # ifndef ICONV_CONVERTER_JIS_X0201
42 # define ICONV_CONVERTER_JIS_X0201
43 # endif
44 # ifndef ICONV_CONVERTER_JIS_X0212_1990
45 # define ICONV_CONVERTER_JIS_X0212_1990
46 # endif
47 #endif /* #ifdef ICONV_CONVERTER_EUC_JP */
48
49 /*
50 * EUC-KR requires us_ascii, ksx1001
51 */
52 #ifdef ICONV_CONVERTER_EUC_KR
53 # ifndef ICONV_CONVERTER_US_ASCII
54 # define ICONV_CONVERTER_US_ASCII
55 # endif
56 # ifndef ICONV_CONVERTER_KSX_1001
57 # define ICONV_CONVERTER_KSX_1001
58 # endif
59 #endif /* #ifdef ICONV_CONVERTER_EUC_KR */
60
61 /*
62 * EUC-TW requires us_ascii, cns11643_plane1, cns11643_plane2, cns11643_plane14
63 */
64 #ifdef ICONV_CONVERTER_EUC_TW
65 # ifndef ICONV_CONVERTER_US_ASCII
66 # define ICONV_CONVERTER_US_ASCII
67 # endif
68 # ifndef ICONV_CONVERTER_CNS11643_PLANE1
69 # define ICONV_CONVERTER_CNS11643_PLANE1
70 # endif
71 # ifndef ICONV_CONVERTER_CNS11643_PLANE2
72 # define ICONV_CONVERTER_CNS11643_PLANE2
73 # endif
74 # ifndef ICONV_CONVERTER_CNS11643_PLANE14
75 # define ICONV_CONVERTER_CNS11643_PLANE14
76 # endif
77 #endif /* #ifdef ICONV_CONVERTER_EUC_TW */
78
79 /*
80 * GB2380 CES requires us_ascii, gb-2312-80 CCS
81 */
82 #ifdef ICONV_CONVERTER_GB2312
83 # ifndef ICONV_CONVERTER_US_ASCII
84 # define ICONV_CONVERTER_US_ASCII
85 # endif
86 # ifndef ICONV_CONVERTER_GB_2312_80
87 # define ICONV_CONVERTER_GB_2312_80
88 # endif
89 #endif /* #ifdef ICONV_CONVERTER_GB2312 */
90
91 #endif /* #ifndef __ICONV_DEPS_H__ */
92
93 #endif /* #ifdef ENABLE_ICONV */
94
This page took 0.037921 seconds and 5 git commands to generate.