Use limits.h for the standard definition of WCHAR_MAX
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2022-12-21 20:11:00 +01:00
parent 16bf8b38ea
commit 96135ff808
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -1,7 +1,8 @@
#include <limits.h>
#include <luna/CString.h> #include <luna/CString.h>
#include <luna/Utf8.h> #include <luna/Utf8.h>
static_assert(__WCHAR_MAX__ > 0x10ffff); static_assert(WCHAR_MAX > 0x10ffff);
static Result<usize> utf8_char_length(char c) static Result<usize> utf8_char_length(char c)
{ {