Avoid code duplication on platforms where int and long are the same size.
This commit is contained in:
parent
9e6108885c
commit
b14160b848
@ -77,15 +77,23 @@ void *bsearch(const void *, const void *, size_t,
|
||||
#ifndef HAVE_INLINE_FFS
|
||||
int ffs(int);
|
||||
#endif
|
||||
#if (__UINT_MAX == __ULONG_MAX)
|
||||
#define ffsl(x) ffs((x))
|
||||
#else
|
||||
#ifndef HAVE_INLINE_FFSL
|
||||
int ffsl(long);
|
||||
#endif
|
||||
#endif
|
||||
#ifndef HAVE_INLINE_FLS
|
||||
int fls(int);
|
||||
#endif
|
||||
#if (__UINT_MAX == __ULONG_MAX)
|
||||
#define flsl(x) fls((x))
|
||||
#else
|
||||
#ifndef HAVE_INLINE_FLSL
|
||||
int flsl(long);
|
||||
#endif
|
||||
#endif
|
||||
int fnmatch(const char *, const char *, int);
|
||||
int locc(int, char *, u_int);
|
||||
void qsort(void *base, size_t nmemb, size_t size,
|
||||
|
Loading…
Reference in New Issue
Block a user