Commit 5d518a0c authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

fix the linux build broken by the previous checkin

git-svn-id: file:///svn/toku/tokudb@20851 c7de825b-a66e-492c-adef-691d508d4ae1
parent dd8861a7
...@@ -133,6 +133,10 @@ static inline int32_t toku_sync_fetch_and_decrement_int32(volatile int32_t *a) { ...@@ -133,6 +133,10 @@ static inline int32_t toku_sync_fetch_and_decrement_int32(volatile int32_t *a) {
return toku_sync_fetch_and_add_int32(a, -1); return toku_sync_fetch_and_add_int32(a, -1);
} }
static inline int32_t toku_sync_add_and_fetch_int32(volatile int32_t *a, int32_t b) {
return __sync_add_and_fetch(a, b);
}
static inline int32_t toku_sync_increment_and_fetch_int32(volatile int32_t *a) { static inline int32_t toku_sync_increment_and_fetch_int32(volatile int32_t *a) {
return toku_sync_add_and_fetch_int32(a, 1); return toku_sync_add_and_fetch_int32(a, 1);
} }
...@@ -161,11 +165,10 @@ static inline uint64_t toku_sync_fetch_and_increment_uint64(volatile uint64_t *a ...@@ -161,11 +165,10 @@ static inline uint64_t toku_sync_fetch_and_increment_uint64(volatile uint64_t *a
#endif #endif
DO_GCC_PRAGMA(GCC __sync_fetch_and_add __sync_add_and_fetch) // DO_GCC_PRAGMA(GCC __sync_fetch_and_add __sync_add_and_fetch)
#if defined(__cplusplus) || defined(__cilkplusplus) #if defined(__cplusplus) || defined(__cilkplusplus)
}; }
#endif #endif
......
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