Skip to content

Commit

Permalink
redefine mi_nothrow_t to be a pointer to (probably) fix issue #840 to…
Browse files Browse the repository at this point in the history
… match WASI signatures
daanx committed Apr 19, 2024
1 parent 09e91ec commit 9830c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alloc-override.c
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ mi_decl_externc size_t malloc_good_size(size_t size);
#endif

// helper definition for C override of C++ new
typedef struct mi_nothrow_s { int _tag; } mi_nothrow_t;
typedef void* mi_nothrow_t;

// ------------------------------------------------------
// Override system malloc

0 comments on commit 9830c0d

Please sign in to comment.