summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-06 17:08:38 +0100
committerPeter S. Mazinger <ps.m@gmx.net>2011-03-06 17:08:38 +0100
commitcda3f2658389330999ad35390ed2676a7dc37325 (patch)
tree56089e5093f6334777fbff177215d1ebc1f02001 /include
parent1f08001dd7c51ce09b39310604e4baa5a973629c (diff)
simplify ffs* code
Remove __libc_ffs*, unneeded Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Diffstat (limited to 'include')
-rw-r--r--include/string.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/string.h b/include/string.h
index 66f64e7d1..c71a85c9f 100644
--- a/include/string.h
+++ b/include/string.h
@@ -374,6 +374,7 @@ extern char *rindex (__const char *__s, int __c)
/* Return the position of the first bit set in I, or 0 if none are set.
The least-significant bit is position 1, the most-significant 32. */
extern int ffs (int __i) __THROW __attribute__ ((__const__));
+libc_hidden_proto(ffs)
/* The following two functions are non-standard but necessary for non-32 bit
platforms. */
@@ -385,13 +386,6 @@ __extension__ extern int ffsll (long long int __ll)
# endif
# endif
-#ifdef _LIBC
-extern __typeof(ffs) __libc_ffs;
-libc_hidden_proto(__libc_ffs);
-extern __typeof(ffsll) __libc_ffsll;
-libc_hidden_proto(__libc_ffsll)
-#endif
-
/* Compare S1 and S2, ignoring case. */
extern int strcasecmp (__const char *__s1, __const char *__s2)
__THROW __attribute_pure__ __nonnull ((1, 2));