[VCRUNTIME][CRT] Change WCHAR_MIN/WCHAR_MAX to match native headers

This avoids conflicting definitions with MS CRT headers.
This commit is contained in:
Timo Kreuzer 2024-10-11 18:43:07 +02:00
parent 53d3cc5f3f
commit 9dedcb67e9
2 changed files with 4 additions and 4 deletions

View File

@ -25,10 +25,10 @@ extern "C" {
#endif
#ifndef WCHAR_MIN
#define WCHAR_MIN 0
#define WCHAR_MIN 0x0000
#endif
#ifndef WCHAR_MAX
#define WCHAR_MAX ((wchar_t)-1) /* UINT16_MAX */
#define WCHAR_MAX 0xffff /* UINT16_MAX */
#endif
#ifndef WEOF

View File

@ -158,10 +158,10 @@ __MINGW_EXTENSION typedef unsigned long long uintmax_t;
#endif
#ifndef WCHAR_MIN /* also in wchar.h */
#define WCHAR_MIN 0
#define WCHAR_MIN 0x0000
#endif
#ifndef WCHAR_MAX
#define WCHAR_MAX ((wchar_t)-1) /* UINT16_MAX */
#define WCHAR_MAX 0xffff /* UINT16_MAX */
#endif
/*