From 235db83d4c4a18eaa0b183f6ef891e7d2dc12e26 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 23 Feb 2012 12:38:42 +0000 Subject: another problematic _CL_HAVE_GCC_ATOMIC_FUNCTIONS for MacOSX --- clucene/patches/clucene-gcc-atomics.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'clucene') diff --git a/clucene/patches/clucene-gcc-atomics.patch b/clucene/patches/clucene-gcc-atomics.patch index d4b47b22cc7b..819e9a7d7a3e 100644 --- a/clucene/patches/clucene-gcc-atomics.patch +++ b/clucene/patches/clucene-gcc-atomics.patch @@ -18,3 +18,14 @@ return __sync_sub_and_fetch(theInteger, 1); #else SCOPED_LOCK_MUTEX(theInteger->THIS_LOCK) +--- src/shared/CLucene/LuceneThreads.h 2012-02-23 12:36:28.388299322 +0000 ++++ src/shared/CLucene/LuceneThreads.h 2012-02-23 12:37:23.131885433 +0000 +@@ -70,7 +70,7 @@ + void NotifyAll(); + }; + +- #ifdef _CL_HAVE_GCC_ATOMIC_FUNCTIONS ++ #if ( __GNUC__ > 4 ) || (( __GNUC__ == 4) && ( __GNUC_MINOR__ >= 4 )) + #define _LUCENE_ATOMIC_INT uint32_t + #define _LUCENE_ATOMIC_INT_SET(x,v) x=v + #define _LUCENE_ATOMIC_INT_GET(x) x -- cgit