From 96135ff808e4f8cfda047eb27c59f677ef28e3e7 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 21 Dec 2022 20:11:00 +0100 Subject: [PATCH] Use limits.h for the standard definition of WCHAR_MAX --- luna/src/Utf8.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luna/src/Utf8.cpp b/luna/src/Utf8.cpp index 7ebc0c51..15930c2a 100644 --- a/luna/src/Utf8.cpp +++ b/luna/src/Utf8.cpp @@ -1,7 +1,8 @@ +#include #include #include -static_assert(__WCHAR_MAX__ > 0x10ffff); +static_assert(WCHAR_MAX > 0x10ffff); static Result utf8_char_length(char c) {