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 <chenrun1@xiaomi.com>
This commit is contained in:
chenrun1 2024-08-09 12:46:22 +08:00 committed by Xiang Xiao
parent aade7c7c2d
commit 6e1dfe2777

View file

@ -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 <stdio.h>.