]> sourceware.org Git - newlib-cygwin.git/commitdiff
Make __always_inline macro compatible with glibc
authorYaakov Selkowitz <yselkowi@redhat.com>
Tue, 16 Jan 2018 19:24:42 +0000 (13:24 -0600)
committerYaakov Selkowitz <yselkowi@redhat.com>
Tue, 16 Jan 2018 19:24:42 +0000 (13:24 -0600)
For example, this is used when cross-compiling the Linux kernel on Cygwin.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
newlib/libc/include/sys/cdefs.h

index db5f2bf2d0788e7140a6013fbe4095cdf2132408..fc564a5c602be4d328e525dd5f19e4ee58bb4406 100644 (file)
 #endif
 
 #if __GNUC_PREREQ__(3, 1) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800)
-#define        __always_inline __attribute__((__always_inline__))
+#define        __always_inline __inline__ __attribute__((__always_inline__))
 #else
 #define        __always_inline
 #endif
This page took 0.03213 seconds and 5 git commands to generate.