Fix malloc_trim() on wasm32
``` compiling gc.c gc.c:9746:5: error: implicit declaration of function 'malloc_trim' is invalid in C99 [-Werror,-Wimplicit-function-declaration] malloc_trim(0); ^ 1 error generated. ```
This commit is contained in:
parent
e9b503f1bb
commit
c3ef7a528b
2
gc.c
2
gc.c
@ -48,7 +48,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MALLOC_USABLE_SIZE
|
#if defined(HAVE_MALLOC_USABLE_SIZE) || defined(HAVE_MALLOC_TRIM)
|
||||||
# ifdef RUBY_ALTERNATIVE_MALLOC_HEADER
|
# ifdef RUBY_ALTERNATIVE_MALLOC_HEADER
|
||||||
/* Alternative malloc header is included in ruby/missing.h */
|
/* Alternative malloc header is included in ruby/missing.h */
|
||||||
# elif defined(HAVE_MALLOC_H)
|
# elif defined(HAVE_MALLOC_H)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user