From be2e915d0d0ee62afc79854a74d11d18f6d1dce4 Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 18 Nov 2022 21:17:26 +0100 Subject: [PATCH] Use the standard names for ctype functions if inside moon or _LUNA_OVERRIDE_STDC is defined --- luna/CType.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/luna/CType.h b/luna/CType.h index 5e8fc45c..79daf531 100644 --- a/luna/CType.h +++ b/luna/CType.h @@ -75,4 +75,22 @@ inline constexpr int _toupper(int c) { if (_islower(c)) return c & 0x5f; return c; -} \ No newline at end of file +} + +#if defined(_LUNA_OVERRIDE_STDC) || defined(IN_MOON) +#define isalnum _isalnum +#define isalpha _isalpha +#define isascii _isascii +#define iscntrl _iscntrl +#define isdigit _isdigit +#define isxdigit _isxdigit +#define isspace _isspace +#define ispunct _ispunct +#define isprint _isprint +#define isgraph _isgraph +#define islower _islower +#define isupper _isupper +#define isblank _isblank +#define tolower _tolower +#define toupper _toupper +#endif \ No newline at end of file