Skip to content

Commit 0e1573a

Browse files
committed
Code review
1 parent 157753d commit 0e1573a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

wolfssl/wolfcrypt/wc_port.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,8 +1183,12 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
11831183
#ifdef WOLF_C99
11841184
/* use alternate keyword for compatibility with -std=c99 */
11851185
#define XASM_VOLATILE(a) __asm__ volatile(a)
1186-
#else
1186+
#elif defined(__IAR_SYSTEMS_ICC__)
11871187
#define XASM_VOLATILE(a) asm volatile(a)
1188+
#elif defined(__KEIL__)
1189+
#define XASM_VOLATILE(a) __asm volatile(a)
1190+
#else
1191+
#define XASM_VOLATILE(a) __asm__ __volatile__(a)
11881192
#endif
11891193

11901194
#ifndef WOLFSSL_NO_FENCE

0 commit comments

Comments
 (0)