Skip to content

Commit 64b0a02

Browse files
committed
remove wchar.h include from mimalloc.h (see also issue leanprover/lean4#7786)
1 parent 24ef7bd commit 64b0a02

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

include/mimalloc.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ terms of the MIT license. A copy of the license can be found in the file
9595
// Includes
9696
// ------------------------------------------------------
9797

98-
#include <stddef.h> // size_t
98+
#include <stddef.h> // size_t, wchar_t
9999
#include <stdbool.h> // bool
100100

101101
#ifdef __cplusplus
@@ -483,7 +483,6 @@ mi_decl_export void mi_free_aligned(void* p, size_t alignment)
483483
mi_decl_export int mi_dupenv_s(char** buf, size_t* size, const char* name) mi_attr_noexcept;
484484

485485
// wide characters
486-
#include <wchar.h> // wchar_t
487486
mi_decl_export int mi_wdupenv_s(wchar_t** buf, size_t* size, const wchar_t* name) mi_attr_noexcept;
488487
mi_decl_nodiscard mi_decl_export mi_decl_restrict wchar_t* mi_wcsdup(const wchar_t* s) mi_attr_noexcept mi_attr_malloc;
489488
mi_decl_nodiscard mi_decl_export mi_decl_restrict unsigned char* mi_mbsdup(const unsigned char* s) mi_attr_noexcept mi_attr_malloc;

0 commit comments

Comments
 (0)