diff --git a/wolfssl/wolfcrypt/sp.h b/wolfssl/wolfcrypt/sp.h index b429d504a..f244325d9 100644 --- a/wolfssl/wolfcrypt/sp.h +++ b/wolfssl/wolfcrypt/sp.h @@ -49,7 +49,7 @@ #define SP_NOINLINE __declspec(noinline) #elif defined(__ICCARM__) || defined(__IAR_SYSTEMS_ICC__) #define SP_NOINLINE _Pragma("inline = never") -#elif defined(__GNUC__) || defined(__KEIL__) +#elif defined(__GNUC__) || defined(__KEIL__) || defined(__DCC__) #define SP_NOINLINE __attribute__((noinline)) #else #define SP_NOINLINE diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 8d723ff77..9b5386f9f 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -259,6 +259,12 @@ decouple library dependencies with standard string, memory and so on. #endif #elif defined(__CCRX__) #define WC_INLINE inline + #elif defined(__DCC__) + #ifndef __cplusplus + #define WC_INLINE __inline__ + #else + #define WC_INLINE inline + #endif #else #define WC_INLINE #endif