summaryrefslogtreecommitdiff
path: root/include/mimalloc-override.h
diff options
context:
space:
mode:
authordaan <daanl@outlook.com>2019-07-18 21:20:18 -0700
committerdaan <daanl@outlook.com>2019-07-18 21:20:18 -0700
commit33aa5d92fa91f063bc09ffdbb6cc1aba40a9b759 (patch)
treede0616cc5f1e505d98c0273ef8777fe01a7de828 /include/mimalloc-override.h
parent93c8a5b693167c164f76935a7e276196a1214dfe (diff)
fix to overrides on windows
Diffstat (limited to 'include/mimalloc-override.h')
-rw-r--r--include/mimalloc-override.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mimalloc-override.h b/include/mimalloc-override.h
index 9d26ab2..f614951 100644
--- a/include/mimalloc-override.h
+++ b/include/mimalloc-override.h
@@ -39,10 +39,10 @@ including this header is not necessary.
#define _strdup(s) mi_strdup(s)
#define _strndup(s) mi_strndup(s)
-#define _wcsdup(s) mi_wcsdup(s)
+#define _wcsdup(s) (wchar_t*)mi_wcsdup((const unsigned short*)(s))
#define _mbsdup(s) mi_mbsdup(s)
#define _dupenv_s(b,n,v) mi_dupenv_s(b,n,v)
-#define _wdupenv_s(b,n,v) mi_wdupenv_s(b,n,v)
+#define _wdupenv_s(b,n,v) mi_wdupenv_s((unsigned short*)(b),n,(const unsigned short*)(v))
// Various Posix and Unix variants
#define reallocf(p,n) mi_reallocf(p,n)