Visitar URL original
GH-158628: Implement `sys._wasi_info` by brettcannon · Pull Request #159039 · python/cpython · GitHub
Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't define __wasi__ when under Emscripten
  • Loading branch information
brettcannon committed Oct 8, 2026
commit f6b8ffe43ea17a4d2451fb4d3552cf9a3ea56250
6 changes: 1 addition & 5 deletions Include/internal/mimalloc/mimalloc/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,14 @@ terms of the MIT license. A copy of the license can be found in the file
#define mi_trace_message(...)
#endif

#if defined(__EMSCRIPTEN__) && !defined(__wasi__)
#define __wasi__
#endif

#if defined(__cplusplus)
#define mi_decl_externc extern "C"
#else
#define mi_decl_externc
#endif

// pthreads
#if !defined(_WIN32) && !defined(__wasi__)
#if !defined(_WIN32) && !defined(__wasm__)
Comment thread
brettcannon marked this conversation as resolved.
#define MI_USE_PTHREADS
#include <pthread.h>
#endif
Expand Down
Loading