1 #ifndef __ICONV_ICONVNLS_H__
2 #define __ICONV_ICONVNLS_H__
7 * Include ucs-2-internal or ucs-4-internal if Newlib is configured as
9 * ============================================================================
13 * Determine size of wchar_t. If size of wchar_t is 2, UCS-2-INTERNAL is used
14 * as widechar's encoding. If size of wchar_t is 4, UCS-4-INTERNAL is used as
15 * widechar's encoding.
17 # if WCHAR_MAX > 0xFFFF
18 # ifndef _ICONV_FROM_ENCODING_UCS_4_INTERNAL
19 # define _ICONV_FROM_ENCODING_UCS_4_INTERNAL
21 # ifndef _ICONV_TO_ENCODING_UCS_4_INTERNAL
22 # define _ICONV_TO_ENCODING_UCS_4_INTERNAL
24 # elif WCHAR_MAX > 0xFF
25 # ifndef _ICONV_FROM_ENCODING_UCS_2_INTERNAL
26 # define _ICONV_FROM_ENCODING_UCS_2_INTERNAL
28 # ifndef _ICONV_TO_ENCODING_UCS_2_INTERNAL
29 # define _ICONV_TO_ENCODING_UCS_2_INTERNAL
32 # error Do not know how to work with 1 byte widechars.
34 #endif /* _MB_CAPABLE */
36 #endif /* !__ICONV_ICONVNLS_H__ */