From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26764 invoked by alias); 30 Aug 2017 17:29:56 -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 26244 invoked by uid 9642); 30 Aug 2017 17:29:56 -0000 Date: Wed, 30 Aug 2017 17:29:00 -0000 Message-ID: <20170830172956.26237.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] include: fix ffs, fls guards X-Act-Checkin: newlib-cygwin X-Git-Author: Yaakov Selkowitz X-Git-Refname: refs/heads/master X-Git-Oldrev: 192986ab032e035d43df909274465b9056e3a818 X-Git-Newrev: 51d1fb715db4c1d290bce3d8b4c42a505918f2af X-SW-Source: 2017-q3/txt/msg00064.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=51d1fb715db4c1d290bce3d8b4c42a505918f2af commit 51d1fb715db4c1d290bce3d8b4c42a505918f2af Author: Yaakov Selkowitz Date: Tue Aug 29 12:55:58 2017 -0500 include: fix ffs, fls guards Signed-off-by: Yaakov Selkowitz Diff: --- newlib/libc/include/strings.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h index 35fcdc0..122f2fc 100644 --- a/newlib/libc/include/strings.h +++ b/newlib/libc/include/strings.h @@ -50,12 +50,14 @@ void bzero(void *, size_t); /* LEGACY */ #if __BSD_VISIBLE void explicit_bzero(void *, size_t); #endif -#if __XSI_VISIBLE +#if __MISC_VISIBLE || __POSIX_VISIBLE < 200809 || __XSI_VISIBLE >= 700 int ffs(int) __pure2; #endif -#if __BSD_VISIBLE +#if __GNU_VISIBLE int ffsl(long) __pure2; int ffsll(long long) __pure2; +#endif +#if __BSD_VISIBLE int fls(int) __pure2; int flsl(long) __pure2; int flsll(long long) __pure2;