summaryrefslogtreecommitdiff
path: root/node/Constants.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-05 17:48:59 +0000
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-05 17:48:59 +0000
commit7d4b6767eb2832106f34ad7a0c05551e7b2155ed (patch)
tree795044e997b4b10fb92659b61278d8be8a17b1e2 /node/Constants.hpp
parent93f9b4392dbf1a2c77fa57aa80ae888aff4fbd10 (diff)
downloadinfinitytier-7d4b6767eb2832106f34ad7a0c05551e7b2155ed.tar.gz
infinitytier-7d4b6767eb2832106f34ad7a0c05551e7b2155ed.zip
Old-school GCC build fix -- make sure __GCC__ is defined
Diffstat (limited to 'node/Constants.hpp')
-rw-r--r--node/Constants.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/node/Constants.hpp b/node/Constants.hpp
index 9c55e162..ca4fc37a 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__