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
46typedef uint_least16_t char16_t;
47typedef uint_least32_t char32_t;
48
49#endif
50
51#endif // !LELY_HAVE_UCHAR_H
52
53#endif // !LELY_LIBC_UCHAR_H_
This header file is part of the Lely libraries; it contains the compiler feature definitions.
This header file is part of the C11 and POSIX compatibility library; it includes <stdint....
This header file is part of the C11 and POSIX compatibility library; it includes <uchar....