summaryrefslogtreecommitdiff
path: root/src/utils
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/utils
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/utils')
-rw-r--r--src/utils/specialfolder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/specialfolder.cpp b/src/utils/specialfolder.cpp
index 221aeac2..63337578 100644
--- a/src/utils/specialfolder.cpp
+++ b/src/utils/specialfolder.cpp
@@ -39,7 +39,7 @@ std::string getSpecialFolderLocation(int folderId)
std::string ret;
LPITEMIDLIST pItemIdList;
LPMALLOC pMalloc;
- char szPath[_MAX_PATH];
+ char szPath[MAX_PATH];
// get the item ID list for folderId
HRESULT hr = SHGetSpecialFolderLocation(NULL, folderId, &pItemIdList);