diff --git a/include/etl/alignment.h b/include/etl/alignment.h index a24bf23b..f7a258f2 100644 --- a/include/etl/alignment.h +++ b/include/etl/alignment.h @@ -184,7 +184,7 @@ namespace etl return reinterpret_cast(data); } -#if ETL_CPP11_SUPPORTED +#if ETL_CPP11_SUPPORTED && !defined(ETL_COMPILER_ARM5) alignas(ALIGNMENT) char data[LENGTH]; #else union diff --git a/include/etl/type_traits.h b/include/etl/type_traits.h index 23728d8b..3757f6b7 100644 --- a/include/etl/type_traits.h +++ b/include/etl/type_traits.h @@ -751,7 +751,7 @@ namespace etl //*************************************************************************** /// Alignment templates. /// These require compiler specific intrinsics. -#if ETL_CPP11_SUPPORTED +#if ETL_CPP11_SUPPORTED && !defined(ETL_COMPILER_ARM5) template struct alignment_of : integral_constant { }; #elif ETL_COMPILER_MICROSOFT template struct alignment_of : integral_constant {};