diff options
author | Christopher Gilbert <christopher.john.gilbert@gmail.com> | 2016-08-30 23:13:21 +0800 |
---|---|---|
committer | Christopher Gilbert <christopher.john.gilbert@gmail.com> | 2016-08-30 23:13:21 +0800 |
commit | a91bca7937e7f6ffdc84c998eade6d38fb08cbb9 (patch) | |
tree | c5b8ad373e6d2b02902765c27992d8d57e97c8b3 /lllc/main.cpp | |
parent | 1b9147d7db08a94dd00532bc611ac322c8ed3e57 (diff) | |
download | dexon-solidity-a91bca7937e7f6ffdc84c998eade6d38fb08cbb9.tar.gz dexon-solidity-a91bca7937e7f6ffdc84c998eade6d38fb08cbb9.tar.zst dexon-solidity-a91bca7937e7f6ffdc84c998eade6d38fb08cbb9.zip |
Code review changes: stylistic changes, and removed redundant call to set locale.
Diffstat (limited to 'lllc/main.cpp')
-rw-r--r-- | lllc/main.cpp | 7 |
1 files changed, 4 insertions, 3 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 |