From a34b45bcc032dc8ea4655cf8f838f0f46beb0939 Mon Sep 17 00:00:00 2001 From: Denys Duchier Date: Sat, 30 Jun 2012 17:51:47 +0200 Subject: [PATCH] distinguish gcc and clang for INLINE_ONLY --- H/inline-only.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/H/inline-only.h b/H/inline-only.h index 5e5c77847..6d58b3991 100644 --- a/H/inline-only.h +++ b/H/inline-only.h @@ -1,10 +1,14 @@ #ifndef _YAP_INLINE_ONLY_H_ #define _YAP_INLINE_ONLY_H_ -#ifdef __GNUC__ +#ifdef __clang__ #define INLINE_ONLY __attribute__((gnu_inline,always_inline)) #else +#ifdef __GNUC__ +#define INLINE_ONLY __attribute__((always_inline)) +#else #define INLINE_ONLY #endif +#endif #endif