tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wint_t.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCHAR_WINT_T_HPP
4#define TETL_CWCHAR_WINT_T_HPP
5
6#include <etl/_config/all.hpp>
7
8#if defined(TETL_COMPILER_MSVC)
9 #include <wchar.h>
10#else
11
12 #if !defined(WEOF)
13 #define WEOF (static_cast<wint_t>(-1))
14 #endif
15
16 #if !defined(WCHAR_MIN)
17 #define WCHAR_MIN TETL_WCHAR_MIN
18 #endif
19
20 #if !defined(WCHAR_MAX)
21 #define WCHAR_MAX TETL_WCHAR_MAX
22 #endif
23
24#endif
25
26namespace etl {
27
28#if !defined(wint_t)
29using wint_t = unsigned int;
30#else
31using wint_t = wint_t;
32#endif
33
34} // namespace etl
35
36#endif // TETL_CWCHAR_WINT_T_HPP
Definition adjacent_find.hpp:8
unsigned int wint_t
Definition wint_t.hpp:29