Skip to content

Commit

Permalink
Do not define __PASTE macro for Arm-compiler (#201)
Browse files Browse the repository at this point in the history
__PASTE macro is defined for Arm Compiler in its header files
so to avoid conflicts it is undefined as it is already defined by
corePkcs11 headers.

Signed-off-by: Ahmed Ismail <[email protected]>
Co-authored-by: Ahmed Ismail <[email protected]>
Co-authored-by: Tony Josi <[email protected]>
  • Loading branch information
3 people authored Nov 12, 2024
1 parent 1f86d12 commit 8a4ac0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/include/core_pkcs11.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a4ac0e

Please sign in to comment.