diff --git a/source/include/core_pkcs11.h b/source/include/core_pkcs11.h index 6c3b3ddd..d25f7f67 100644 --- a/source/include/core_pkcs11.h +++ b/source/include/core_pkcs11.h @@ -197,8 +197,8 @@ /* Bring in the public header. */ -/* Undefine the macro for Keil Compiler to avoid conflict */ -#if defined( __PASTE ) && defined( __CC_ARM ) +/* Undefine the macro for Keil and ARMClang Compilers to avoid conflict */ +#if defined( __PASTE ) && ( defined( __CC_ARM ) || defined( __ARMCC_VERSION ) ) /* ARM RCVT stdint.h has a duplicate definition with PKCS #11. */ #undef __PASTE #endif