Skip to content

Commit f6b8ffe

Browse files
committed
Don't define __wasi__ when under Emscripten
1 parent 4410516 commit f6b8ffe

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎Include/internal/mimalloc/mimalloc/internal.h‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,14 @@ terms of the MIT license. A copy of the license can be found in the file
2323
#define mi_trace_message(...)
2424
#endif
2525

26-
#if defined(__EMSCRIPTEN__) && !defined(__wasi__)
27-
#define __wasi__
28-
#endif
29-
3026
#if defined(__cplusplus)
3127
#define mi_decl_externc extern "C"
3228
#else
3329
#define mi_decl_externc
3430
#endif
3531

3632
// pthreads
37-
#if !defined(_WIN32) && !defined(__wasi__)
33+
#if !defined(_WIN32) && !defined(__wasm__)
3834
#define MI_USE_PTHREADS
3935
#include <pthread.h>
4036
#endif

0 commit comments

Comments
 (0)