Message ID | 1462544723-48415-2-git-send-email-roger.pau@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/include/xtf/compiler.h b/include/xtf/compiler.h index 47d929c..251b853 100644 --- a/include/xtf/compiler.h +++ b/include/xtf/compiler.h @@ -4,7 +4,9 @@ #define __aligned(x) __attribute__((__aligned__(x))) #define __packed __attribute__((__packed__)) +#ifndef __noinline /* Avoid conflicting with cdefs.h */ #define __noinline __attribute__((__noinline__)) +#endif #ifndef __always_inline /* Avoid conflicting with cdefs.h */ #define __always_inline __attribute__((__always_inline__))
On FreeBSD __noinline is already defined in cdefs.h Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> --- Cc: Andrew Cooper <andrew.cooper3@citrix.com> --- include/xtf/compiler.h | 2 ++ 1 file changed, 2 insertions(+)