From bc1b666b830b78b11bc3723b6f28e46d5485b3ff Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 24 Feb 2021 00:34:41 +0100 Subject: [PATCH] Fix compilation errors on CI --- Source/Engine/Platform/Linux/LinuxPlatform.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Platform/Linux/LinuxPlatform.cpp b/Source/Engine/Platform/Linux/LinuxPlatform.cpp index 6308bb987..4e27511d1 100644 --- a/Source/Engine/Platform/Linux/LinuxPlatform.cpp +++ b/Source/Engine/Platform/Linux/LinuxPlatform.cpp @@ -16,6 +16,7 @@ #include "Engine/Core/Math/Color32.h" #include "Engine/Platform/CPUInfo.h" #include "Engine/Platform/MemoryStats.h" +#include "Engine/Platform/StringUtils.h" #include "Engine/Platform/MessageBox.h" #include "Engine/Platform/WindowsManager.h" #include "Engine/Utilities/StringConverter.h" @@ -1023,7 +1024,7 @@ int parse_size(const char* str, uintmax_t* res, int* power) } p = str; - while (isspace((unsigned char)*p)) + while (StringUtils::IsWhitespace((char)*p)) p++; if (*p == '-') { @@ -1062,7 +1063,7 @@ check_suffix: for (p = fstr; *p == '0'; p++) frac_zeros++; fstr = p; - if (isdigit(*fstr)) + if (StringUtils::IsDigit(*fstr)) { errno = 0, end = NULL; frac = strtoumax(fstr, &end, 0);