From d42f25aa5b8c8f356ab08397d23047e226d57b24 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sun, 19 Jun 2011 14:29:42 +0200 Subject: 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 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') 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 -- cgit v1.2.3-70-g09d2