File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 55extern "C" {
66#endif
77
8- #cmakedefine CMARK_THREADING
8+ #cmakedefine01 CMARK_THREADING
99
1010#ifdef __cplusplus
1111}
Original file line number Diff line number Diff line change 1212extern "C" {
1313#endif
1414
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
1622
1723#ifdef __cplusplus
1824}
Original file line number Diff line number Diff line change 55
66#include <stdbool.h>
77
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
159
1610#if defined(__unix__ ) || (defined(__APPLE__ ) && defined(__MACH__ )) || defined(__wasi__ )
1711#include <unistd.h>
You can’t perform that action at this time.
0 commit comments