distinguish gcc and clang for INLINE_ONLY
This commit is contained in:
parent
fab462b002
commit
a34b45bcc0
@ -1,10 +1,14 @@
|
|||||||
#ifndef _YAP_INLINE_ONLY_H_
|
#ifndef _YAP_INLINE_ONLY_H_
|
||||||
#define _YAP_INLINE_ONLY_H_
|
#define _YAP_INLINE_ONLY_H_
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __clang__
|
||||||
#define INLINE_ONLY __attribute__((gnu_inline,always_inline))
|
#define INLINE_ONLY __attribute__((gnu_inline,always_inline))
|
||||||
#else
|
#else
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define INLINE_ONLY __attribute__((always_inline))
|
||||||
|
#else
|
||||||
#define INLINE_ONLY
|
#define INLINE_ONLY
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user