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// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_CWCHAR_WINT_T_HPP
5#define TETL_CWCHAR_WINT_T_HPP
6
7#include <etl/_config/all.hpp>
8
9#if defined(TETL_COMPILER_MSVC)
10 #include <wchar.h>
11#else
12
13 #if !defined(WEOF)
14 #define WEOF (static_cast<wint_t>(-1))
15 #endif
16
17 #if !defined(WCHAR_MIN)
18 #define WCHAR_MIN TETL_WCHAR_MIN
19 #endif
20
21 #if !defined(WCHAR_MAX)
22 #define WCHAR_MAX TETL_WCHAR_MAX
23 #endif
24
25#endif
26
27namespace etl {
28
29#if !defined(wint_t)
30using wint_t = unsigned int;
31#else
32using wint_t = wint_t;
33#endif
34
35} // namespace etl
36
37#endif // TETL_CWCHAR_WINT_T_HPP
Definition adjacent_find.hpp:9