diff --git a/library/common.h b/library/common.h index 839b7d119c..48c275627e 100644 --- a/library/common.h +++ b/library/common.h @@ -242,8 +242,12 @@ static inline void mbedtls_xor_no_simd(unsigned char *r, /* Define `asm` for compilers which don't define it. */ /* *INDENT-OFF* */ #ifndef asm +#if defined(__IAR_SYSTEMS_ICC__) +#define asm __asm +#else #define asm __asm__ #endif +#endif /* *INDENT-ON* */ /*