summaryrefslogtreecommitdiffstats
path: root/Source/JavaScriptCore/wtf/AlwaysInline.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/wtf/AlwaysInline.h')
-rw-r--r--Source/JavaScriptCore/wtf/AlwaysInline.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/JavaScriptCore/wtf/AlwaysInline.h b/Source/JavaScriptCore/wtf/AlwaysInline.h
index 29c35a8..bacbdd0 100644
--- a/Source/JavaScriptCore/wtf/AlwaysInline.h
+++ b/Source/JavaScriptCore/wtf/AlwaysInline.h
@@ -41,7 +41,7 @@
#endif
#ifndef UNLIKELY
-#if defined(__GNUC__)
+#if COMPILER(GCC) || (RVCT_VERSION_AT_LEAST(3, 0, 0, 0) && defined(__GNUC__))
#define UNLIKELY(x) __builtin_expect((x), 0)
#else
#define UNLIKELY(x) (x)
@@ -49,7 +49,7 @@
#endif
#ifndef LIKELY
-#if defined(__GNUC__)
+#if COMPILER(GCC) || (RVCT_VERSION_AT_LEAST(3, 0, 0, 0) && defined(__GNUC__))
#define LIKELY(x) __builtin_expect((x), 1)
#else
#define LIKELY(x) (x)