From 9590650af70bc9cde35e87fc386956c3e7054229 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 11 May 2012 13:40:50 +0100 Subject: gcc atomics only definitely available >= gcc 4.4.4 Change-Id: I77580411eabe4375d86670debb4a5770f7873c14 --- icu/icu4c-interlck.patch | 11 +++++++++++ icu/makefile.mk | 1 + 2 files changed, 12 insertions(+) create mode 100644 icu/icu4c-interlck.patch (limited to 'icu') diff --git a/icu/icu4c-interlck.patch b/icu/icu4c-interlck.patch new file mode 100644 index 000000000000..6426dce4dab4 --- /dev/null +++ b/icu/icu4c-interlck.patch @@ -0,0 +1,11 @@ +--- misc/icu/source/common/putilimp.h ++++ misc/build/icu/source/common/putilimp.h +@@ -175,7 +175,7 @@ + */ + #ifdef U_HAVE_GCC_ATOMICS + /* Use the predefined value. */ +-#elif defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 401) ++#elif defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 404) + # define U_HAVE_GCC_ATOMICS 1 + #else + # define U_HAVE_GCC_ATOMICS 0 diff --git a/icu/makefile.mk b/icu/makefile.mk index 0253978dc49a..4009280b9b0f 100644 --- a/icu/makefile.mk +++ b/icu/makefile.mk @@ -53,6 +53,7 @@ PATCH_FILES=\ icu4c-warnings.patch \ icu4c.9313.cygwin.patch \ icu4c-macosx.patch \ + icu4c-interlck.patch \ .IF "$(OS)"=="ANDROID" PATCH_FILES+=\ -- cgit