From 7d4b6767eb2832106f34ad7a0c05551e7b2155ed Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 5 Sep 2014 17:48:59 +0000 Subject: [PATCH] Old-school GCC build fix -- make sure __GCC__ is defined --- node/Constants.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/node/Constants.hpp b/node/Constants.hpp index 9c55e1629..ca4fc37ac 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -41,6 +41,13 @@ // Also makes sure __BYTE_ORDER is defined reasonably. // +// Hack: make sure __GCC__ is defined on old GCC compilers +#ifndef __GCC__ +#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1) || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2) || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) +#define __GCC__ +#endif +#endif + #if defined(__linux__) || defined(linux) || defined(__LINUX__) || defined(__linux) #ifndef __LINUX__ #define __LINUX__