From ae92932788af191db536a34afc594bc567ed20d0 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 18 Mar 2022 15:12:05 +0000 Subject: [PATCH] Changed ETL_ENDIANNESS_IS_CONSTEXPR to ETL_HAS_CONSTEXPR_ENDIANNESS --- include/etl/endianness.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/etl/endianness.h b/include/etl/endianness.h index 300bc84d..bc219c05 100644 --- a/include/etl/endianness.h +++ b/include/etl/endianness.h @@ -76,9 +76,9 @@ SOFTWARE. // If true, then the endianness of the platform can be constexpr. #if (ETL_CPP11_SUPPORTED && defined(ETL_ENDIAN_NATIVE)) - #define ETL_ENDIANNESS_IS_CONSTEXPR 1 + #define ETL_HAS_CONSTEXPR_ENDIANNESS 1 #else - #define ETL_ENDIANNESS_IS_CONSTEXPR 0 + #define ETL_HAS_CONSTEXPR_ENDIANNESS 0 #endif namespace etl @@ -113,7 +113,7 @@ namespace etl return etl::endian(*this); } -#if ETL_ENDIANNESS_IS_CONSTEXPR +#if ETL_HAS_CONSTEXPR_ENDIANNESS ETL_CONSTEXPR #endif operator etl::endian() const @@ -121,7 +121,7 @@ namespace etl return get(); } -#if ETL_ENDIANNESS_IS_CONSTEXPR +#if ETL_HAS_CONSTEXPR_ENDIANNESS ETL_CONSTEXPR #endif static etl::endian value() @@ -131,7 +131,7 @@ namespace etl private: -#if ETL_ENDIANNESS_IS_CONSTEXPR +#if ETL_HAS_CONSTEXPR_ENDIANNESS static ETL_CONSTEXPR etl::endian get() { return etl::endian::native;