Fix Linux build
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user