From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117646 invoked by alias); 17 Jan 2018 07:47:45 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 117587 invoked by uid 9642); 17 Jan 2018 07:47:44 -0000 Date: Wed, 17 Jan 2018 07:47:00 -0000 Message-ID: <20180117074744.117585.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Yaakov Selkowitz To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Make __always_inline macro compatible with glibc X-Act-Checkin: newlib-cygwin X-Git-Author: Yaakov Selkowitz X-Git-Refname: refs/heads/master X-Git-Oldrev: 2cb24159fbb2a5f8a28d87413b517e6f2b242a0f X-Git-Newrev: 82339fcd717b4365caf65abf67072840342b4730 X-SW-Source: 2018-q1/txt/msg00003.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=82339fcd717b4365caf65abf67072840342b4730 commit 82339fcd717b4365caf65abf67072840342b4730 Author: Yaakov Selkowitz Date: Tue Jan 16 13:24:42 2018 -0600 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: --- newlib/libc/include/sys/cdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h index db5f2bf..fc564a5 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