File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 5
5
extern "C" {
6
6
#endif
7
7
8
- #cmakedefine CMARK_THREADING
8
+ #cmakedefine01 CMARK_THREADING
9
9
10
10
#ifdef __cplusplus
11
11
}
Original file line number Diff line number Diff line change 12
12
extern "C" {
13
13
#endif
14
14
15
- #define CMARK_THREADING
15
+ #ifndef CMARK_THREADING
16
+ #if defined(__wasi__ ) && !defined(_REENTRANT )
17
+ #define CMARK_THREADING 0
18
+ #else
19
+ #define CMARK_THREADING 1
20
+ #endif
21
+ #endif
16
22
17
23
#ifdef __cplusplus
18
24
}
Original file line number Diff line number Diff line change 5
5
6
6
#include <stdbool.h>
7
7
8
- #ifndef CMARK_THREADING
9
- #if !defined(__wasi__ ) || defined(_REENTRANT )
10
- #define CMARK_THREADING
11
- #endif
12
- #endif
13
-
14
- #ifdef CMARK_THREADING
8
+ #if CMARK_THREADING
15
9
16
10
#if defined(__unix__ ) || (defined(__APPLE__ ) && defined(__MACH__ )) || defined(__wasi__ )
17
11
#include <unistd.h>
You can’t perform that action at this time.
0 commit comments