mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
Macro changes to fix issues
This commit is contained in:
parent
d27adeb510
commit
2fa82d579e
@ -58,7 +58,7 @@ SOFTWARE.
|
||||
#include <string_view>
|
||||
#endif
|
||||
|
||||
#if ETL_USING_STL
|
||||
#if ETL_USING_STD_OSTREAM
|
||||
#include <ostream>
|
||||
#endif
|
||||
|
||||
|
||||
@ -457,6 +457,14 @@ SOFTWARE.
|
||||
|
||||
//*************************************
|
||||
// Determine if the ETL can use libc's wchar.h
|
||||
#if !defined(ETL_NO_LIBC_WCHAR_H)
|
||||
#if defined(__has_include)
|
||||
#if !__has_include(<wchar.h>)
|
||||
#define ETL_NO_LIBC_WCHAR_H
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(ETL_NO_LIBC_WCHAR_H)
|
||||
#define ETL_USING_LIBC_WCHAR_H 0
|
||||
#define ETL_NOT_USING_LIBC_WCHAR_H 1
|
||||
@ -465,6 +473,24 @@ SOFTWARE.
|
||||
#define ETL_NOT_USING_LIBC_WCHAR_H 0
|
||||
#endif
|
||||
|
||||
//*************************************
|
||||
// Determine if the ETL can use STL ostream
|
||||
#if !defined(ETL_NO_STD_OSTREAM) && ETL_USING_STL
|
||||
#if defined(__has_include)
|
||||
#if !__has_include(<ostream>)
|
||||
#define ETL_NO_STD_OSTREAM
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(ETL_NO_STD_OSTREAM) || (ETL_NOT_USING_STL && !defined(ETL_IN_UNIT_TEST))
|
||||
#define ETL_USING_STD_OSTREAM 0
|
||||
#define ETL_NOT_USING_STD_OSTREAM 1
|
||||
#else
|
||||
#define ETL_USING_STD_OSTREAM 1
|
||||
#define ETL_NOT_USING_STD_OSTREAM 0
|
||||
#endif
|
||||
|
||||
//*************************************
|
||||
// Determine if the ETL should support atomics.
|
||||
#if defined(ETL_NO_ATOMICS) || \
|
||||
|
||||
@ -47,7 +47,7 @@ SOFTWARE.
|
||||
#include <string_view>
|
||||
#endif
|
||||
|
||||
#if ETL_USING_STL
|
||||
#if ETL_USING_STD_OSTREAM
|
||||
#include <ostream>
|
||||
#endif
|
||||
|
||||
|
||||
@ -11,10 +11,12 @@ Fixes:
|
||||
#1171 optional of a const arary can't be emplaced with gcc-15
|
||||
#1176 Fix GCC __builtin_memcpy errors when compiling with -O2 optimisation
|
||||
#1180 Duplicate definition of const_reference in etl::const_set_ext
|
||||
#1181 Compilation errors on basic_string
|
||||
|
||||
Pull Requests:
|
||||
#1169 Remove Unreachable Break Statements
|
||||
#1172 Make call interfaces in etl::delegate and etl::closure conditionally noexcept
|
||||
#1177 Fix .clang-format
|
||||
|
||||
===============================================================================
|
||||
20.43.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user