From 0e1573accc78c64a37e314f0a7326e49ab3ea0df Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Thu, 4 Jan 2024 13:49:47 +0100 Subject: [PATCH] Code review --- wolfssl/wolfcrypt/wc_port.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/wc_port.h b/wolfssl/wolfcrypt/wc_port.h index 8815effff..99eb06682 100644 --- a/wolfssl/wolfcrypt/wc_port.h +++ b/wolfssl/wolfcrypt/wc_port.h @@ -1183,8 +1183,12 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void); #ifdef WOLF_C99 /* use alternate keyword for compatibility with -std=c99 */ #define XASM_VOLATILE(a) __asm__ volatile(a) -#else +#elif defined(__IAR_SYSTEMS_ICC__) #define XASM_VOLATILE(a) asm volatile(a) +#elif defined(__KEIL__) + #define XASM_VOLATILE(a) __asm volatile(a) +#else + #define XASM_VOLATILE(a) __asm__ __volatile__(a) #endif #ifndef WOLFSSL_NO_FENCE