From: Yaakov Selkowitz Date: Tue, 16 Jan 2018 19:24:42 +0000 (-0600) Subject: Make __always_inline macro compatible with glibc X-Git-Tag: newlib-snapshot-20180118~21 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=82339fcd717b4365caf65abf67072840342b4730;p=newlib-cygwin.git Make __always_inline macro compatible with glibc For example, this is used when cross-compiling the Linux kernel on Cygwin. Signed-off-by: Yaakov Selkowitz --- diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h index db5f2bf2d..fc564a5c6 100644 --- a/newlib/libc/include/sys/cdefs.h +++ b/newlib/libc/include/sys/cdefs.h @@ -385,7 +385,7 @@ #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