From ebc84bed665494dde9dbef956a0383ff79cb3d0c Mon Sep 17 00:00:00 2001 From: W-50243 Date: Thu, 23 Nov 2023 11:02:24 +0800 Subject: [PATCH] [FIX] Fix the function isctype failed in arm64-big-endian --- libcxx/include/__locale | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/include/__locale b/libcxx/include/__locale index b1502dd71edad..ef56135f2f1d4 100644 --- a/libcxx/include/__locale +++ b/libcxx/include/__locale @@ -384,7 +384,7 @@ public: static const mask punct = _ISpunct; static const mask xdigit = _ISxdigit; static const mask blank = _ISblank; -#if defined(__mips__) +#if defined(__mips__) || (BYTE_ORDER == BIG_ENDIAN) static const mask __regex_word = static_cast(_ISbit(15)); #else static const mask __regex_word = 0x80;