summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authordaan <daanl@outlook.com>2019-07-18 18:59:32 -0700
committerdaan <daanl@outlook.com>2019-07-18 18:59:32 -0700
commitc228ecefd8c183b5992aa9dd71922dff33a568b4 (patch)
tree1c15762c721b787a0ca59f7a61ad81501dadf8d1 /src/alloc.c
parentf646cc925dab5116a3677e9045cda169d9b9527c (diff)
update for new dynamic direction on windows 64-bit
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/alloc.c b/src/alloc.c
index da8c69b..10a74ce 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -393,12 +393,6 @@ void* mi_realloc(void* p, size_t newsize) mi_attr_noexcept {
return mi_heap_realloc(mi_get_default_heap(),p,newsize);
}
-void* mi_recalloc(void* p, size_t count, size_t size) mi_attr_noexcept {
- size_t total;
- if (mi_mul_overflow(count, size, &total)) return NULL;
- return _mi_heap_realloc_zero(mi_get_default_heap(),p,total,true);
-}
-
void* mi_reallocn(void* p, size_t count, size_t size) mi_attr_noexcept {
return mi_heap_reallocn(mi_get_default_heap(),p,count,size);
}
@@ -537,6 +531,7 @@ std_new_handler_t mi_get_new_handler() {
return _ZSt15get_new_handlerv();
}
#else
+// note: on windows we could dynamically link to `?get_new_handler@std@@YAP6AXXZXZ`.
std_new_handler_t mi_get_new_handler() {
return NULL;
}