public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] include: fix ffs, fls guards
@ 2017-08-30 17:29 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2017-08-30 17:29 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=51d1fb715db4c1d290bce3d8b4c42a505918f2af
commit 51d1fb715db4c1d290bce3d8b4c42a505918f2af
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date: Tue Aug 29 12:55:58 2017 -0500
include: fix ffs, fls guards
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-30 17:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-30 17:29 [newlib-cygwin] include: fix ffs, fls guards Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).