diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-04-24 15:54:18 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-04-27 08:03:29 +0700 |
commit | c6932c1ea9cf971d53ed45e9c792c7ed9cd3d81a (patch) | |
tree | f5ac29bd314f9dad3838a613222a42e89ad673f0 /system | |
parent | 75bf333498ad87d0c830e6b5193ee0e6d682a27a (diff) |
Flag malloc_usable_size as weak.
This makes it match the other malloc symbols.
Diffstat (limited to 'system')
-rw-r--r-- | system/lib/dlmalloc.c | 3 | ||||
-rw-r--r-- | system/lib/libc.symbols | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/system/lib/dlmalloc.c b/system/lib/dlmalloc.c index 9a84d48f..e833ae42 100644 --- a/system/lib/dlmalloc.c +++ b/system/lib/dlmalloc.c @@ -1275,7 +1275,8 @@ extern "C" { p = malloc(n); assert(malloc_usable_size(p) >= 256); */ - size_t dlmalloc_usable_size(void*); + /* XXX EMSCRIPTEN: mark for export (and therefore weak) */ + DLMALLOC_EXPORT size_t dlmalloc_usable_size(void*); #endif /* ONLY_MSPACES */ diff --git a/system/lib/libc.symbols b/system/lib/libc.symbols index 1b126abf..70b21024 100644 --- a/system/lib/libc.symbols +++ b/system/lib/libc.symbols @@ -55,7 +55,7 @@ W malloc_set_footprint_limit W malloc_stats W malloc_trim - T malloc_usable_size + W malloc_usable_size W mallopt W memalign C optarg |