summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
Diffstat (limited to 'node')
-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__