summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index c15b19c44f..9963cdec52 100644
--- a/gc.c
+++ b/gc.c
@@ -35,6 +35,12 @@
# define __has_feature(x) 0
#endif
+#ifndef HAVE_MALLOC_USABLE_SIZE
+# ifdef _WIN32
+# define malloc_usable_size(a) _msize(a)
+# endif
+#endif
+
#if /* is ASAN enabled? */ \
__has_feature(address_sanitizer) /* Clang */ || \
defined(__SANITIZE_ADDRESS__) /* GCC 4.8.x */