1
0
mirror of https://github.com/openbsd/src.git synced 2026-05-01 17:46:35 +00:00

Remove gcc3 workaround in UVCHR_IS_INVARIANT().

This commit is contained in:
miod
2025-10-23 18:50:38 +00:00
parent 1c86e9db25
commit 67aa317b5c

View File

@@ -409,12 +409,7 @@ C<cp> is Unicode if above 255; otherwise is platform-native.
=cut
*/
#if defined(__m88k__)
/* XXX workaround: m88k gcc3 produces wrong code with NATIVE_TO_UNI() */
#define UVCHR_IS_INVARIANT(cp) (OFFUNI_IS_INVARIANT(cp))
#else /* the original one */
#define UVCHR_IS_INVARIANT(cp) (OFFUNI_IS_INVARIANT(NATIVE_TO_UNI(cp)))
#endif
/* This defines the 1-bits that are to be in the first byte of a multi-byte
* UTF-8 encoded character that mark it as a start byte and give the number of