summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/TLpatches/patch-03-gcc-atomic
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/icu/TLpatches/patch-03-gcc-atomic')
-rw-r--r--Build/source/libs/icu/TLpatches/patch-03-gcc-atomic13
1 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/libs/icu/TLpatches/patch-03-gcc-atomic b/Build/source/libs/icu/TLpatches/patch-03-gcc-atomic
new file mode 100644
index 00000000000..2b53072f732
--- /dev/null
+++ b/Build/source/libs/icu/TLpatches/patch-03-gcc-atomic
@@ -0,0 +1,13 @@
+ It seems gcc-4.4 uses external calls.
+
+--- source/common/putilimp.h (revision 40154)
++++ source/common/putilimp.h (working copy)
+@@ -191,7 +191,7 @@
+ /* Use the predefined value. */
+ #elif U_PLATFORM == U_PF_MINGW
+ #define U_HAVE_GCC_ATOMICS 0
+-#elif U_GCC_MAJOR_MINOR >= 404 || defined(__clang__)
++#elif U_GCC_MAJOR_MINOR >= 405 || defined(__clang__)
+ /* TODO: Intel icc and IBM xlc on AIX also support gcc atomics. (Intel originated them.)
+ * Add them for these compilers.
+ * Note: Clang sets __GNUC__ defines for version 4.2, so misses the 4.4 test here.