Lely core libraries
2.3.4
uchar.h
Go to the documentation of this file.
1
22
#ifndef LELY_LIBC_UCHAR_H_
23
#define LELY_LIBC_UCHAR_H_
24
25
#include <
lely/features.h
>
26
27
#ifndef LELY_HAVE_UCHAR_H
28
#if (__STDC_VERSION__ >= 201112L || __cplusplus >= 201103L) \
29
&& !defined(__NEWLIB__)
30
#define LELY_HAVE_UCHAR_H 1
31
#endif
32
#endif
33
34
#if LELY_HAVE_UCHAR_H
35
#include <
uchar.h
>
36
#else
37
38
#include <wchar.h>
39
40
#if __cplusplus >= 201103L
41
// char16_t and char32_t are built-in types in C++11 and later.
42
#else
43
44
#include <
stdint.h
>
45
46
typedef
uint_least16_t char16_t;
47
typedef
uint_least32_t char32_t;
48
49
#endif
50
51
#endif // !LELY_HAVE_UCHAR_H
52
53
#endif // !LELY_LIBC_UCHAR_H_
features.h
stdint.h
uchar.h
include
lely
libc
uchar.h
Generated by
1.8.17