aboutsummaryrefslogtreecommitdiff
path: root/include/irrUString.h
diff options
context:
space:
mode:
authorVitaliy <numzer0@yandex.ru>2023-03-11 17:04:09 +0300
committerGitHub <noreply@github.com>2023-03-11 15:04:09 +0100
commit5a5a7d04b71b576ac9eed1bb58110009f8b46d0b (patch)
treea1d94ca96df4ddfdbfc2f190b8779a59da2073f4 /include/irrUString.h
parent1d43ea17ca8ee9a01262e9e34c5c89579b97397f (diff)
downloadirrlicht-5a5a7d04b71b576ac9eed1bb58110009f8b46d0b.tar.xz
Drop IrrCompileConfig (#163)
Diffstat (limited to 'include/irrUString.h')
-rw-r--r--include/irrUString.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/irrUString.h b/include/irrUString.h
index 8e553fd..b0b730f 100644
--- a/include/irrUString.h
+++ b/include/irrUString.h
@@ -174,7 +174,7 @@ inline core::array<u8> getUnicodeBOM(EUTF_ENCODE mode)
COPY_ARRAY(BOM_ENCODE_UTF8, BOM_ENCODE_UTF8_LEN);
break;
case EUTFE_UTF16:
- #ifdef __BIG_ENDIAN__
+ #if __BYTE_ORDER == __BIG_ENDIAN
COPY_ARRAY(BOM_ENCODE_UTF16_BE, BOM_ENCODE_UTF16_LEN);
#else
COPY_ARRAY(BOM_ENCODE_UTF16_LE, BOM_ENCODE_UTF16_LEN);
@@ -187,7 +187,7 @@ inline core::array<u8> getUnicodeBOM(EUTF_ENCODE mode)
COPY_ARRAY(BOM_ENCODE_UTF16_LE, BOM_ENCODE_UTF16_LEN);
break;
case EUTFE_UTF32:
- #ifdef __BIG_ENDIAN__
+ #if __BYTE_ORDER == __BIG_ENDIAN
COPY_ARRAY(BOM_ENCODE_UTF32_BE, BOM_ENCODE_UTF32_LEN);
#else
COPY_ARRAY(BOM_ENCODE_UTF32_LE, BOM_ENCODE_UTF32_LEN);