mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Merge pull request #3560 from melo/fix-macos-10-8-compile
Fixes compilation on MacOS 10.8.5, Clang tags/Apple/clang-421.0.57
This commit is contained in:
commit
ea95262d8d
@ -51,7 +51,7 @@
|
|||||||
#ifndef __ATOMIC_VAR_H
|
#ifndef __ATOMIC_VAR_H
|
||||||
#define __ATOMIC_VAR_H
|
#define __ATOMIC_VAR_H
|
||||||
|
|
||||||
#if defined(__ATOMIC_RELAXED)
|
#if defined(__ATOMIC_RELAXED) && (!defined(__clang__) || __apple_build_version__ > 4210057)
|
||||||
/* Implementation using __atomic macros. */
|
/* Implementation using __atomic macros. */
|
||||||
|
|
||||||
#define atomicIncr(var,count,mutex) __atomic_add_fetch(&var,(count),__ATOMIC_RELAXED)
|
#define atomicIncr(var,count,mutex) __atomic_add_fetch(&var,(count),__ATOMIC_RELAXED)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user