Unified · Split
| @@ -1,33 +1,33 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. | 2 | * This file has no copyright assigned and is placed in the Public Domain. |
| 3 | * This file is part of the TinyCC package. | 3 | * This file is part of the TinyCC package. |
| 4 | * No warranty is given; refer to the file DISCLAIMER within this package. | 4 | * No warranty is given; refer to the file DISCLAIMER within this package. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #ifndef _INC_UCHAR | 7 | #ifndef _INC_UCHAR |
| 8 | #define _INC_UCHAR | 8 | #define _INC_UCHAR |
| 9 | 9 | ||
| 10 | /* | 10 | /* |
| 11 | * The following defines are only valid when C11 (-std=c11) is used. | 11 | * The following defines are only valid when C11 (-std=c11) is used. |
| 12 | * | 12 | * |
| 13 | * ... a wide character constant prefixed by the letter u or U has type char16_t | 13 | * ... a wide character constant prefixed by the letter u or U has type char16_t |
| 14 | * or char32_t, respectively, unsigned integer types defined in the <uchar.h> | 14 | * or char32_t, respectively, unsigned integer types defined in the <uchar.h> |
| 15 | * header. | 15 | * header. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #if __STDC_VERSION__ >= 201112L | 18 | #if __STDC_VERSION__ >= 201112L |
| 19 | /** | 19 | /** |
| 20 | * __STDC_UTF_16__ The integer constant 1, intended to indicate that | 20 | * __STDC_UTF_16__ The integer constant 1, intended to indicate that |
| 21 | * values of type char16_t are UTF-16 encoded. | 21 | * values of type char16_t are UTF-16 encoded. |
| 22 | */ | 22 | */ |
| 23 | #define __STDC_UTF_16__ 1 | 23 | #define __STDC_UTF_16__ 1 |
| 24 | /** | 24 | /** |
| 25 | * __STDC_UTF_32__ The integer constant 1, intended to indicate that | 25 | * __STDC_UTF_32__ The integer constant 1, intended to indicate that |
| 26 | * values of type char32_t are UTF-32 encoded. | 26 | * values of type char32_t are UTF-32 encoded. |
| 27 | */ | 27 | */ |
| 28 | #define __STDC_UTF_32__ 1 | 28 | #define __STDC_UTF_32__ 1 |
| 29 | 29 | ||
| 30 | typedef unsigned short char16_t; | 30 | typedef unsigned short char16_t; |
| 31 | typedef unsigned int char32_t; | 31 | typedef unsigned int char32_t; |
| 32 | #endif /* __STDC_VERSION__ >= 201112L */ | 32 | #endif /* __STDC_VERSION__ >= 201112L */ |
| 33 | #endif /* _INC_UCHAR */ | 33 | #endif /* _INC_UCHAR */ |