ARM5 (armcc) compiler fixes for C++11. (#261)

This commit is contained in:
Rolan Reznik 2020-08-28 17:12:47 +03:00 committed by GitHub
parent dfb0251e57
commit a33a70b5e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ namespace etl
return reinterpret_cast<const T*>(data);
}
#if ETL_CPP11_SUPPORTED
#if ETL_CPP11_SUPPORTED && !defined(ETL_COMPILER_ARM5)
alignas(ALIGNMENT) char data[LENGTH];
#else
union

View File

@ -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 <typename T> struct alignment_of : integral_constant<size_t, alignof(T)> { };
#elif ETL_COMPILER_MICROSOFT
template <typename T> struct alignment_of : integral_constant<size_t, size_t(__alignof(T))> {};