Simplify MRB_ENDIAN_BIG macro definition; ref #4190

`cpp` does not raise error on undefined macro access in condition.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-12-21 09:28:19 +09:00
parent 445c64d0ad
commit ed2bc5d4ed
+1 -1
View File
@@ -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