From adf0ad95c9b785448278162cfcc9d922e09b30eb Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Tue, 2 May 2017 21:36:14 +0200 Subject: [PATCH] IBM xlc compiler does not like "static inline" (related to #209) --- src/headers/tomcrypt_cfg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/headers/tomcrypt_cfg.h b/src/headers/tomcrypt_cfg.h index ccfb78b..40d83e5 100644 --- a/src/headers/tomcrypt_cfg.h +++ b/src/headers/tomcrypt_cfg.h @@ -41,8 +41,8 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const char *s1, const char *s2); #endif -/* some compilers do not like "inline" */ -#if defined(__HP_cc) +/* some compilers do not like "inline" (or maybe "static inline"), namely: HP cc, IBM xlc */ +#if defined(__HP_cc) || defined(__xlc__) #define LTC_INLINE #elif defined(_MSC_VER) #define LTC_INLINE __inline