aboutsummaryrefslogtreecommitdiffstats
path: root/solc/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'solc/main.cpp')
-rw-r--r--solc/main.cpp7
1 files changed, 4 insertions, 3 deletions
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