summaryrefslogtreecommitdiff
path: root/lib/libc/ctype/isgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/ctype/isgraph.c')
-rw-r--r--lib/libc/ctype/isgraph.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/ctype/isgraph.c b/lib/libc/ctype/isgraph.c
index 07df57d0..39e72159 100644
--- a/lib/libc/ctype/isgraph.c
+++ b/lib/libc/ctype/isgraph.c
@@ -1,8 +1,12 @@
-#include <libc.h> // for weak_reference
+#include <ctype.h> // for isgraph, isgraph_l, locale_t
+#include <sys/cdefs.h> // for __unused, __weak
int isgraph(int c)
{
return (unsigned)c - 0x21 < 0x5e;
}
-weak_reference(isgraph, isgraph_l);
+__weak int isgraph_l(int c, locale_t __unused locale)
+{
+ return isgraph(c);
+}