#ifdef _REENTRANT
#include <stdatomic.h>
+extern void __wasi_init_tp(void);
#endif
#include <wasi/api.h>
extern void __wasm_call_ctors(void);
started = 1;
#endif
+#ifdef _REENTRANT
+ __wasi_init_tp();
+#endif
+
// The linker synthesizes this to call constructors.
__wasm_call_ctors();