From bd7132e3123c54c4dc338e9de158da3615fc0c0f Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 22 Oct 2019 15:54:08 +0200 Subject: [PATCH] include: Avoid macro redefinition when wchar.h is included after stdint.h. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- include/msvcrt/wchar.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/msvcrt/wchar.h b/include/msvcrt/wchar.h index 7761f5a7b20..7f8141a453c 100644 --- a/include/msvcrt/wchar.h +++ b/include/msvcrt/wchar.h @@ -26,8 +26,10 @@ extern "C" { #endif #endif -#define WCHAR_MIN 0 -#define WCHAR_MAX ((wchar_t)-1) +#ifndef WCHAR_MIN /* also in stdint.h */ +#define WCHAR_MIN 0U +#define WCHAR_MAX 0xffffU +#endif #ifndef DECLSPEC_ALIGN # if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)