Use a different workaround for problems with IARCC. (#594)

This approach may be better as is uses the same syntax using `< ... >` as before. Has been suggested here: https://github.com/ETLCPP/etl/pull/593#issuecomment-1239222424

This is based on the insight, that the problem with IARCC occurs only in case the `__has_include` is used as part of a preprocessor definition. See https://github.com/ETLCPP/etl/pull/593#issuecomment-1239208693
This commit is contained in:
David Hebbeker 2022-09-07 13:37:21 +02:00 committed by GitHub
parent 63e31068b7
commit 25d377114d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,11 @@ SOFTWARE.
// Figure out if we can use the standard library <new> header, if haven't already done so in etl_profile.h
#if !defined(ETL_USING_STD_NEW)
#if defined(__has_include)
#define ETL_USING_STD_NEW __has_include("new")
#if __has_include(<new>)
#define ETL_USING_STD_NEW 1
#else
#define ETL_USING_STD_NEW 0
#endif
#elif (defined(ARDUINO) && defined(__AVR__))
#define ETL_USING_STD_NEW 0
#else