From 3ab1214012bcd6318550dc6db2913481dfb6b326 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 18 Jul 2024 01:10:51 +0300 Subject: [PATCH] LibC: Fix _toupper and _tolower definitions They were using C++ global namespace, which of course does not exist for C targets. --- userspace/libraries/LibC/include/ctype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userspace/libraries/LibC/include/ctype.h b/userspace/libraries/LibC/include/ctype.h index b7ea45c1..84ef292c 100644 --- a/userspace/libraries/LibC/include/ctype.h +++ b/userspace/libraries/LibC/include/ctype.h @@ -40,8 +40,8 @@ int tolower_l(int, locale_t); int toupper(int); int toupper_l(int, locale_t); -#define _toupper(val) ::toupper(val) -#define _tolower(val) ::tolower(val) +#define _toupper(val) toupper(val) +#define _tolower(val) tolower(val) __END_DECLS