mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-15 16:36:03 +08:00
Define missing macro when cross compiling with clang
This commit is contained in:
parent
32d80e91e7
commit
5dd5bc3aac
@ -332,9 +332,8 @@ namespace etl
|
||||
static ETL_CONSTANT bool is_signed = etl::is_signed<wchar_t>::value;
|
||||
static ETL_CONSTANT bool is_modulo = etl::is_unsigned<wchar_t>::value;
|
||||
|
||||
#if defined(ETL_COMPILER_CLANG) && defined(CROSS_COMPILING_TO_AVR)
|
||||
#undef WCHAR_MIN
|
||||
#define WCHAR_MIN (-WCHAR_MAX - 1)
|
||||
#if defined(ETL_COMPILER_CLANG) && defined(ETL_CROSS_COMPILING_TO_AVR) && !defined(WCHAR_MIN)
|
||||
#define WCHAR_MIN (-WCHAR_MAX - 1)
|
||||
#endif
|
||||
|
||||
static ETL_CONSTEXPR wchar_t min() { return WCHAR_MIN; }
|
||||
|
||||
@ -76,7 +76,7 @@ SOFTWARE.
|
||||
#define ETL_COMPILER_CLANG
|
||||
#define ETL_COMPILER_TYPE_DETECTED
|
||||
#if __AVR__ == 1
|
||||
#define CROSS_COMPILING_TO_AVR
|
||||
#define ETL_CROSS_COMPILING_TO_AVR
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user