summaryrefslogtreecommitdiff
path: root/include/mimalloc-override.h
diff options
context:
space:
mode:
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)