Fix MBEDTLS_BSWAP32 on armcc 5

Signed-off-by: Tom Cosgrove <[email protected]>
This commit is contained in:
Tom Cosgrove
2023-07-11 14:06:37 +01:00
parent 4999f15d98
commit f2b5a13d02
+3
View File
@@ -181,6 +181,9 @@ inline void mbedtls_put_unaligned_uint64(void *p, uint64_t x)
/* Detect armcc built-in byteswap routine */
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 410000) && !defined(MBEDTLS_BSWAP32)
#if defined(__ARM_ACLE) /* ARM Compiler 6 - earlier versions don't need a header */
#include <arm_acle.h>
#endif
#define MBEDTLS_BSWAP32 __rev
#endif