From d52e870fc7073375f0066d1abe1a628a51456734 Mon Sep 17 00:00:00 2001 From: Adam Watkins Date: Sun, 1 May 2022 17:01:33 +0100 Subject: [PATCH] Change std::setlocale to setlocale --- src/pfaedle/PfaedleMain.cpp | 2 +- src/util/tests/TestMain.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pfaedle/PfaedleMain.cpp b/src/pfaedle/PfaedleMain.cpp index c4af14a..6865bd0 100644 --- a/src/pfaedle/PfaedleMain.cpp +++ b/src/pfaedle/PfaedleMain.cpp @@ -92,7 +92,7 @@ int main(int argc, char** argv) { srand(time(NULL) + rand()); // NOLINT // use utf8 locale - std::setlocale(LC_ALL, "en_US.utf8"); + setlocale(LC_ALL, "en_US.utf8"); T_START(total); diff --git a/src/util/tests/TestMain.cpp b/src/util/tests/TestMain.cpp index 31d7cf1..167e293 100644 --- a/src/util/tests/TestMain.cpp +++ b/src/util/tests/TestMain.cpp @@ -28,7 +28,7 @@ int main(int argc, char** argv) { UNUSED(argc); UNUSED(argv); - std::setlocale(LC_ALL, "en_US.utf8"); + setlocale(LC_ALL, "en_US.utf8"); QuadTreeTest quadTreeTest; quadTreeTest.run();