Skip to content

Commit 4f9f1e1

Browse files
authored
Remove ctype compat macros. NFC (#20960)
libcxx has direct support for `_NEWLIB_VERSION` in `__locale` so just use that. This libcxx support was added in http://reviews.llvm.org/D7888 and landed in emscripten in #13154.
1 parent 78b1090 commit 4f9f1e1

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

system/include/compat/ctype.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

system/lib/libcxx/include/__locale

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,12 @@ public:
406406
static const mask __regex_word = 0x4000; // 0x8000 and 0x0100 and 0x00ff are used
407407
# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_PRINT
408408
# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_ALPHA
409-
#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__) || defined(__NetBSD__)
409+
#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
410410
# ifdef __APPLE__
411411
typedef __uint32_t mask;
412412
# elif defined(__FreeBSD__)
413413
typedef unsigned long mask;
414-
# elif defined(__EMSCRIPTEN__) || defined(__NetBSD__)
414+
# elif defined(__NetBSD__)
415415
typedef unsigned short mask;
416416
# endif
417417
static const mask space = _CTYPE_S;

0 commit comments

Comments
 (0)