From ed2bc5d4ed363f8d8d1f4bee69555972cfbed262 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 21 Dec 2018 09:28:19 +0900 Subject: Simplify `MRB_ENDIAN_BIG` macro definition; ref #4190 `cpp` does not raise error on undefined macro access in condition. --- include/mrbconf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mrbconf.h b/include/mrbconf.h index 553ed62cc..9bdd11af6 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -60,7 +60,7 @@ /* define on big endian machines; used by MRB_NAN_BOXING, etc. */ #ifndef MRB_ENDIAN_BIG -# if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN +# if BYTE_ORDER == BIG_ENDIAN # define MRB_ENDIAN_BIG # endif #endif -- cgit v1.2.3