diff options
Diffstat (limited to 'libc/string/ffs.c')
-rw-r--r-- | libc/string/ffs.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libc/string/ffs.c b/libc/string/ffs.c index 22efe4a1e..f39d304b7 100644 --- a/libc/string/ffs.c +++ b/libc/string/ffs.c @@ -5,11 +5,9 @@ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -/* ffsl,ffsll */ - -#include "_string.h" - - +#include <limits.h> +#include <string.h> + int ffs(int i) { #if 1 @@ -52,3 +50,6 @@ int ffs(int i) #endif } libc_hidden_def(ffs) +#if ULONG_MAX == UINT_MAX +strong_alias_untyped(ffs, ffsl) +#endif |