]> xenbits.xensource.com Git - people/liuw/xtf.git/commitdiff
Don't re-define __noinline
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 6 May 2016 09:15:49 +0000 (11:15 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 May 2016 14:58:48 +0000 (15:58 +0100)
On FreeBSD __noinline is already defined in cdefs.h

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
include/xtf/compiler.h

index 47d929ca3368ec7b26ea2292648770e0ff432e40..251b853ddcb00852c9d7b8f90c143abb2008dd6d 100644 (file)
@@ -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__))