Browse Source

IBM xlc compiler does not like "static inline" (related to #209)

Karel Miko 8 năm trước cách đây
mục cha
commit
adf0ad95c9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/headers/tomcrypt_cfg.h

+ 2 - 2
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