distinguish gcc and clang for INLINE_ONLY

This commit is contained in:
Denys Duchier 2012-06-30 17:51:47 +02:00
parent fab462b002
commit a34b45bcc0

View File

@ -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