From 90ff680aff6c32adccfb6d7d966372544d7bbc61 Mon Sep 17 00:00:00 2001 From: William JCM Date: Sat, 26 Nov 2022 11:30:48 +0100 Subject: [PATCH] Main: fix Clang builds. For some reason, only GCC has setlocale() wrapped in the std namespace. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c01a5eb..5af499f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,7 +40,7 @@ int main(int argc, char** argv) { LOG_INFO("Initialising M.A.S.S. Builder Save Tool version " SAVETOOL_VERSION "."); - auto str = std::setlocale(LC_ALL, ".utf-8"); + auto str = setlocale(LC_ALL, ".utf-8"); if(str) { Containers::StringView locale{str}; LOG_INFO_FORMAT("Current locale: {}", locale);