aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lllc/main.cpp7
-rw-r--r--solc/main.cpp7
2 files changed, 8 insertions, 6 deletions
diff --git a/lllc/main.cpp b/lllc/main.cpp
index 46416365..ed91c0a2 100644
--- a/lllc/main.cpp
+++ b/lllc/main.cpp
@@ -53,10 +53,11 @@ void version()
exit(0);
}
-void setEnv() {
- std::setlocale(LC_ALL, "C");
+void setEnv()
+{
#if !defined(WIN32) && !defined(MAC_OSX) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
- if (!std::setlocale(LC_ALL, "")) {
+ if (!std::setlocale(LC_ALL, ""))
+ {
setenv("LC_ALL", "C", 1);
}
#endif
diff --git a/solc/main.cpp b/solc/main.cpp
index bc8bdc81..ce787574 100644
--- a/solc/main.cpp
+++ b/solc/main.cpp
@@ -27,10 +27,11 @@
using namespace std;
-void setEnv() {
- std::setlocale(LC_ALL, "C");
+void setEnv()
+{
#if !defined(WIN32) && !defined(MAC_OSX) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
- if (!std::setlocale(LC_ALL, "")) {
+ if (!std::setlocale(LC_ALL, ""))
+ {
setenv("LC_ALL", "C", 1);
}
#endif