OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [iconv/] [lib/] [iconvnls.h] - Blame information for rev 455

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
#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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.