summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-07-05 18:45:35 +0200
committerJose <jose@zeroc.com>2013-07-05 18:45:35 +0200
commit1229ca79df0a19be97db1ec7d4a0022ce2b456c6 (patch)
treea91da1b6123ed13b5e0f9c0cb667acb70d04259f /cpp
parentFixed ICE-5341 - Allow proper C++11 detection for clang on non-Apple systems (diff)
downloadice-1229ca79df0a19be97db1ec7d4a0022ce2b456c6.tar.bz2
ice-1229ca79df0a19be97db1ec7d4a0022ce2b456c6.tar.xz
ice-1229ca79df0a19be97db1ec7d4a0022ce2b456c6.zip
Fixed ICE-5373 - Wrong GCC Version check in IceUtil/Shared.h
Diffstat (limited to 'cpp')
-rw-r--r--cpp/include/IceUtil/Shared.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/include/IceUtil/Shared.h b/cpp/include/IceUtil/Shared.h
index 727835d9002..ab349ec2a4a 100644
--- a/cpp/include/IceUtil/Shared.h
+++ b/cpp/include/IceUtil/Shared.h
@@ -20,7 +20,7 @@
// doesn't work. Apple is supported for all architectures. Sun only
// supports sparc (32 and 64 bit).
-#elif (__GNUC__ >= 4 && __GNUC_MINOR__ >= 1 || __clang__) && \
+#elif ((defined(__GNUC__) && (((__GNUC__* 100) + __GNUC_MINOR__) >= 401)) || __clang__) && \
((defined(__sun) && (defined(__sparc) || defined(__sparcv9))) || \
defined(__APPLE__) || \
(defined(__linux) && \