22 #ifndef LELY_LIBC_STRINGS_H_ 23 #define LELY_LIBC_STRINGS_H_ 27 #ifndef LELY_HAVE_STRINGS_H 28 #if (_POSIX_C_SOURCE >= 200112L || defined(__NEWLIB__)) 29 #define LELY_HAVE_STRINGS_H 1 33 #if LELY_HAVE_STRINGS_H 35 #else // !LELY_HAVE_STRINGS_H 39 #ifndef LELY_LIBC_STRINGS_INLINE 40 #define LELY_LIBC_STRINGS_INLINE static inline 53 #if (defined(__GNUC__) || __has_builtin(__builtin_ffs)) \ 54 && !defined(__BSD_VISIBLE) 55 LELY_LIBC_STRINGS_INLINE
int ffs(
int i);
60 return __builtin_ffs(i);
73 int strcasecmp(
const char *s1,
const char *s2);
82 int strncasecmp(
const char *s1,
const char *s2,
size_t n);
88 #endif // !LELY_HAVE_STRINGS_H 90 #endif // !LELY_LIBC_STRINGS_H_ This header file is part of the C11 and POSIX compatibility library; it includes <strings.h>, if it exists, and defines any missing functionality.
This header file is part of the C11 and POSIX compatibility library; it includes <stddef.h> and defines any missing functionality.
This header file is part of the Lely libraries; it contains the compiler feature definitions.