Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Dec 4, 2023
1 parent e7ac267 commit 9375d59
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1646,13 +1646,10 @@ static inline size_t js_def_malloc_usable_size(void *ptr)
return malloc_size(ptr);
#elif defined(_WIN32)
return _msize(ptr);
#elif defined(EMSCRIPTEN)
return 0;
#elif defined(__linux__)
return malloc_usable_size(ptr);
#else
/* change this to `return 0;` if compilation fails */
return malloc_usable_size(ptr);
return 0;
#endif
}

Expand Down

0 comments on commit 9375d59

Please sign in to comment.