From 6e1dfe2777dec943bc5c0fa00aefab0763955182 Mon Sep 17 00:00:00 2001 From: chenrun1 Date: Fri, 9 Aug 2024 12:46:22 +0800 Subject: [PATCH] include/wchar:Fix mbstate_t Redeclaration in MSVC Summary: Because stdio.h references stdatomic.h in MVSC, it internally declares mbstate_t, leading to redeclarations during compilation. Signed-off-by: chenrun1 --- include/wchar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wchar.h b/include/wchar.h index 4a95bb60f4..3027ad7dae 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -97,7 +97,8 @@ struct mbstate_s int __fill[6]; }; -typedef struct mbstate_s mbstate_t; +typedef struct mbstate_s mbstate_s; +#define mbstate_t mbstate_s /* FILE * As described in .