From 2c522c355f18e6c4859093baebcc601bad5f81f1 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 27 Jan 2026 14:40:23 +0700 Subject: [PATCH] Fix wchar_t redefinition in C++ --- include/bits/wchar.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/bits/wchar.h b/include/bits/wchar.h index 31eb7598e8..e271c72b32 100644 --- a/include/bits/wchar.h +++ b/include/bits/wchar.h @@ -6,10 +6,12 @@ #ifndef _WCHAR_T #define _WCHAR_T +#ifndef __cplusplus #ifndef __WCHAR_TYPE__ #define __WCHAR_TYPE__ int32_t #endif typedef __WCHAR_TYPE__ wchar_t; +#endif // __cplusplus #endif // _WCHAR_T #ifndef _WINT_T