]> sourceware.org Git - newlib-cygwin.git/commitdiff
Make ffsl() and ffsll() BSD-visible
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Fri, 29 Sep 2017 05:29:03 +0000 (07:29 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Fri, 3 Nov 2017 09:46:07 +0000 (10:46 +0100)
Since glibc 2.27, they are visible via _DEFAULT_SOURCE (__USE_MISC):

https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/man3/ffs.3?id=247bbcf00c9a425ab0ad6e303ec8718e4ba844a6

In FreeBSD, they are guarded by __BSD_VISIBLE.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
newlib/libc/include/strings.h

index 122f2fcd6bb1c1f13ef527a2d2fa9c1f298a72ad..50a30421572328370dc57fbb5835b87687c25bb5 100644 (file)
@@ -53,11 +53,9 @@ void  explicit_bzero(void *, size_t);
 #if __MISC_VISIBLE || __POSIX_VISIBLE < 200809 || __XSI_VISIBLE >= 700
 int     ffs(int) __pure2;
 #endif
-#if __GNU_VISIBLE
+#if __BSD_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;
This page took 0.033122 seconds and 5 git commands to generate.