Fix Linux build

This commit is contained in:
Wojtek Figat
2021-04-30 17:03:40 +02:00
parent c785f9106b
commit 167f7e268d
4 changed files with 8 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
#include "Engine/Platform/File.h"
#include "Engine/Core/Types/String.h"
#include "Engine/Core/Types/StringView.h"
#include "Engine/Core/Types/TimeSpan.h"
#include "Engine/Core/Math/Math.h"
#include "Engine/Utilities/StringConverter.h"
#include <sys/types.h>

View File

@@ -2031,8 +2031,8 @@ bool LinuxPlatform::Init()
char buffer[UNIX_APP_BUFF_SIZE];
// Get user locale string
char* locale = setlocale(LC_ALL, NULL);
if (strcmp (locale, "C") == 0)
const char* locale = setlocale(LC_ALL, NULL);
if (strcmp(locale, "C") == 0)
locale = "";
UserLocale = String(locale);