aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-08-29 12:55:58 -0500
committerYaakov Selkowitz <yselkowi@redhat.com>2017-08-30 12:29:47 -0500
commit51d1fb715db4c1d290bce3d8b4c42a505918f2af (patch)
tree5df0e2110e971ee09761471204623af632a5eeac /newlib
parent192986ab032e035d43df909274465b9056e3a818 (diff)
downloadnewlib-51d1fb715db4c1d290bce3d8b4c42a505918f2af.zip
newlib-51d1fb715db4c1d290bce3d8b4c42a505918f2af.tar.gz
newlib-51d1fb715db4c1d290bce3d8b4c42a505918f2af.tar.bz2
include: fix ffs, fls guards
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/strings.h6
1 files 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;