File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8...3.14)
2
2
3
3
project (
4
4
cthread
5
- VERSION 4.0.1.18
5
+ VERSION 4.0.1.19
6
6
DESCRIPTION "Emulated C11 threads and thread pool, with custom malloc replacement."
7
7
HOMEPAGE_URL "https://github.com/zelang-dev/cthread"
8
8
LANGUAGES C
Original file line number Diff line number Diff line change @@ -1114,7 +1114,7 @@ typedef unsigned char c89atomic_bool;
1114
1114
1115
1115
#define c89atomic_compiler_fence () __asm__ __volatile__("":::"memory")
1116
1116
1117
- #if defined(__GNUC__ )
1117
+ #if defined(__GNUC__ ) && !defined( __APPLE__ )
1118
1118
/* Legacy GCC atomic built-ins. Everything is a full memory barrier. */
1119
1119
#define c89atomic_thread_fence (order ) __sync_synchronize(), (void)order
1120
1120
Original file line number Diff line number Diff line change 62
62
63
63
#if __has_builtin (__builtin_assume )
64
64
#define rpmalloc_assume (cond ) __builtin_assume(cond)
65
- #elif defined(__GNUC__ )
65
+ #elif defined(__GNUC__ ) && !defined( __APPLE__ )
66
66
#define rpmalloc_assume (cond ) \
67
67
do { \
68
68
if (!__builtin_expect(cond, 0)) \
94
94
//! Enable asserts
95
95
#define ENABLE_ASSERTS 0
96
96
#endif
97
- #ifndef ENABLE_PRELOAD
98
- //! Support preloading
99
- #define ENABLE_PRELOAD 0
100
- #endif
101
97
#ifndef DISABLE_UNMAP
102
98
//! Disable unmapping memory pages (also enables unlimited cache)
103
99
#define DISABLE_UNMAP 0
You can’t perform that action at this time.
0 commit comments