This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] include: fix ffs, fls guards
- From: Yaakov Selkowitz <yselkowi at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 29 Aug 2017 12:58:52 -0500
- Subject: [PATCH] include: fix ffs, fls guards
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=yselkowi at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6F2BF4DD4B
- References: <c2ddfc99-b289-0a57-5d3b-0b45c382ca85@cygwin.com>
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
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 35fcdc092..122f2fcd6 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;
--
2.14.1