From 1a5e7cb0cb4366d22bfaa44361c1c8e3ed76c428 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 28 Mar 2016 12:26:49 -0700 Subject: [PATCH] More tweaks to OS determination stuff. --- node/Constants.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/Constants.hpp b/node/Constants.hpp index 90ac5c61c..856de1b09 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -59,6 +59,7 @@ #ifndef __BSD__ #define __BSD__ #endif +#include #endif // Defined this macro to disable "type punning" on a number of targets that @@ -103,9 +104,8 @@ #include #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