[Libreoffice-commits] .: clucene/patches

Caolán McNamara caolan at kemper.freedesktop.org
Thu Feb 23 04:39:42 PST 2012


 clucene/patches/clucene-gcc-atomics.patch |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 235db83d4c4a18eaa0b183f6ef891e7d2dc12e26
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Feb 23 12:38:42 2012 +0000

    another problematic _CL_HAVE_GCC_ATOMIC_FUNCTIONS for MacOSX

diff --git a/clucene/patches/clucene-gcc-atomics.patch b/clucene/patches/clucene-gcc-atomics.patch
index d4b47b2..819e9a7 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


More information about the Libreoffice-commits mailing list