summaryrefslogtreecommitdiffhomepage
path: root/include/mrbconf.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-12-21 09:28:19 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-12-21 09:28:19 +0900
commited2bc5d4ed363f8d8d1f4bee69555972cfbed262 (patch)
tree830a89e1003b89b7e4469140e8e73457a4eac2f5 /include/mrbconf.h
parent445c64d0ad95ec9e4918e2f2ffedcd1df1ce96bf (diff)
downloadmruby-ed2bc5d4ed363f8d8d1f4bee69555972cfbed262.tar.gz
mruby-ed2bc5d4ed363f8d8d1f4bee69555972cfbed262.zip
Simplify `MRB_ENDIAN_BIG` macro definition; ref #4190
`cpp` does not raise error on undefined macro access in condition.
Diffstat (limited to 'include/mrbconf.h')
-rw-r--r--include/mrbconf.h2
1 files changed, 1 insertions, 1 deletions
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