diff options
Diffstat (limited to 'lib/libc/ctype/islower.c')
| -rw-r--r-- | lib/libc/ctype/islower.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/ctype/islower.c b/lib/libc/ctype/islower.c index a6108e39..8438c8d1 100644 --- a/lib/libc/ctype/islower.c +++ b/lib/libc/ctype/islower.c @@ -1,8 +1,12 @@ -#include <libc.h> // for weak_reference +#include <ctype.h> // for islower, islower_l, locale_t +#include <sys/cdefs.h> // for __unused, __weak int islower(int c) { return (unsigned)c - 'a' < 26; } -weak_reference(islower, islower_l); +__weak int islower_l(int c, locale_t __unused locale) +{ + return islower(c); +} |
