summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <mana@crushnet.org>2011-06-19 14:29:42 +0200
committerPhilipp Sehmisch <mana@crushnet.org>2011-06-19 14:29:42 +0200
commitd42f25aa5b8c8f356ab08397d23047e226d57b24 (patch)
treecc64b36c182a388e9dad9aefba890f31fccc578c /src/main.cpp
parent98a6003999eb198d9b953c11cca43aad181788c9 (diff)
downloadmana-d42f25aa5b8c8f356ab08397d23047e226d57b24.tar.gz
mana-d42f25aa5b8c8f356ab08397d23047e226d57b24.tar.bz2
mana-d42f25aa5b8c8f356ab08397d23047e226d57b24.tar.xz
mana-d42f25aa5b8c8f356ab08397d23047e226d57b24.zip
More C++0x Windows compilation fixes.
Another case of M_PI being no longer defined in cmath.h _MAX_PATH doesn't work anymore, but there is still MAX_PATH putenv doesn't work anymore, so I replaced it with a function from the WINApi Reviewed-by: Thorbjorn
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 41f1c3d5..08ae4a8c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -173,7 +173,7 @@ static void initInternationalization()
{
#if ENABLE_NLS
#ifdef WIN32
- putenv(("LANG=" + std::string(_nl_locale_name_default())).c_str());
+ SetEnvironmentVariable("LANG", _nl_locale_name_default());
// mingw doesn't like LOCALEDIR to be defined for some reason
bindtextdomain("mana", "translations/");
#else