21 lines
590 B
Text
21 lines
590 B
Text
Index: quickjs.c
|
|
--- quickjs.c.orig
|
|
+++ quickjs.c
|
|
@@ -1667,7 +1667,7 @@ static inline size_t js_def_malloc_usable_size(void *p
|
|
return malloc_usable_size(ptr);
|
|
#else
|
|
/* change this to `return 0;` if compilation fails */
|
|
- return malloc_usable_size(ptr);
|
|
+ return 0; // return malloc_usable_size(ptr);
|
|
#endif
|
|
}
|
|
|
|
@@ -1741,7 +1741,7 @@ static const JSMallocFunctions def_malloc_funcs = {
|
|
(size_t (*)(const void *))malloc_usable_size,
|
|
#else
|
|
/* change this to `NULL,` if compilation fails */
|
|
- malloc_usable_size,
|
|
+ NULL, // malloc_usable_size,
|
|
#endif
|
|
};
|
|
|