diff options
author | Philipp Sehmisch <mana@crushnet.org> | 2011-06-19 14:29:42 +0200 |
---|---|---|
committer | Philipp Sehmisch <mana@crushnet.org> | 2011-06-19 14:29:42 +0200 |
commit | d42f25aa5b8c8f356ab08397d23047e226d57b24 (patch) | |
tree | cc64b36c182a388e9dad9aefba890f31fccc578c /src/utils | |
parent | 98a6003999eb198d9b953c11cca43aad181788c9 (diff) | |
download | mana-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.cpp | 2 |
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); |