Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.0 KB
|
Rev | Line | |
---|
[444] | 1 | #ifndef __ICONV_ICONVNLS_H__ |
---|
| 2 | #define __ICONV_ICONVNLS_H__ |
---|
| 3 | |
---|
| 4 | #include <newlib.h> |
---|
| 5 | |
---|
| 6 | /* |
---|
| 7 | * Include ucs-2-internal or ucs-4-internal if Newlib is configured as |
---|
| 8 | * "multibyte-capable". |
---|
| 9 | * ============================================================================ |
---|
| 10 | */ |
---|
| 11 | #ifdef _MB_CAPABLE |
---|
| 12 | /* |
---|
| 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. |
---|
| 16 | */ |
---|
| 17 | # if WCHAR_MAX > 0xFFFF |
---|
| 18 | # ifndef _ICONV_FROM_ENCODING_UCS_4_INTERNAL |
---|
| 19 | # define _ICONV_FROM_ENCODING_UCS_4_INTERNAL |
---|
| 20 | # endif |
---|
| 21 | # ifndef _ICONV_TO_ENCODING_UCS_4_INTERNAL |
---|
| 22 | # define _ICONV_TO_ENCODING_UCS_4_INTERNAL |
---|
| 23 | # endif |
---|
| 24 | # elif WCHAR_MAX > 0xFF |
---|
| 25 | # ifndef _ICONV_FROM_ENCODING_UCS_2_INTERNAL |
---|
| 26 | # define _ICONV_FROM_ENCODING_UCS_2_INTERNAL |
---|
| 27 | # endif |
---|
| 28 | # ifndef _ICONV_TO_ENCODING_UCS_2_INTERNAL |
---|
| 29 | # define _ICONV_TO_ENCODING_UCS_2_INTERNAL |
---|
| 30 | # endif |
---|
| 31 | # else |
---|
| 32 | # error Do not know how to work with 1 byte widechars. |
---|
| 33 | # endif |
---|
| 34 | #endif /* _MB_CAPABLE */ |
---|
| 35 | |
---|
| 36 | #endif /* !__ICONV_ICONVNLS_H__ */ |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.