summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-03-28 12:26:49 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-03-28 12:26:49 -0700
commit1a5e7cb0cb4366d22bfaa44361c1c8e3ed76c428 (patch)
tree6b085a5c3ae8e01b2c8d2e9cf1e0bb2517817b8a /node
parent8035afae874e21ab85a4837973e320aa4a92182d (diff)
downloadinfinitytier-1a5e7cb0cb4366d22bfaa44361c1c8e3ed76c428.tar.gz
infinitytier-1a5e7cb0cb4366d22bfaa44361c1c8e3ed76c428.zip
More tweaks to OS determination stuff.
Diffstat (limited to 'node')
-rw-r--r--node/Constants.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/node/Constants.hpp b/node/Constants.hpp
index 90ac5c61..856de1b0 100644
--- a/node/Constants.hpp
+++ b/node/Constants.hpp
@@ -59,6 +59,7 @@
#ifndef __BSD__
#define __BSD__
#endif
+#include <machine/endian.h>
#endif
// Defined this macro to disable "type punning" on a number of targets that
@@ -103,9 +104,8 @@
#include <Windows.h>
#endif
-// Assume these are little-endian. PPC is not supported for OSX, and ARM
-// runs in little-endian mode for these OS families.
-#if defined(__APPLE__) || defined(__WINDOWS__)
+// Assume little endian if not defined
+#if (defined(__APPLE__) || defined(__WINDOWS__)) && (!defined(__BYTE_ORDER))
#undef __BYTE_ORDER
#undef __LITTLE_ENDIAN
#undef __BIG_ENDIAN