Kaydet (Commit) 235db83d authored tarafından Caolán McNamara's avatar Caolán McNamara

another problematic _CL_HAVE_GCC_ATOMIC_FUNCTIONS for MacOSX

üst ada908ab
...@@ -18,3 +18,14 @@ ...@@ -18,3 +18,14 @@
return __sync_sub_and_fetch(theInteger, 1); return __sync_sub_and_fetch(theInteger, 1);
#else #else
SCOPED_LOCK_MUTEX(theInteger->THIS_LOCK) 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment