From 8954a7ca0f70bbf167c9119d26c7bca8407e8da6 Mon Sep 17 00:00:00 2001 From: Bernd Wachter Date: Mon, 24 Oct 2011 20:28:15 +0300 Subject: Change the wrong, but mostly supported WIN32 macro to the correct _WIN32, enforced by -std=c++0x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Thorbjørn Lindeijer --- src/client.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 5736cec4..642d9376 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -86,7 +86,7 @@ #include #include -#ifdef WIN32 +#ifdef _WIN32 #include #include "utils/specialfolder.h" #else @@ -278,7 +278,7 @@ Client::Client(const Options &options): std::string path = options.brandingPath; // Strip blah.mana from the path -#ifdef WIN32 +#ifdef _WIN32 int loc1 = path.find_last_of('/'); int loc2 = path.find_last_of('\\'); int loc = std::max(loc1, loc2); @@ -297,14 +297,14 @@ Client::Client(const Options &options): resman->addToSearchPath(mLocalDataDir, false); std::string iconFile = branding.getValue("appIcon", "icons/mana"); -#ifdef WIN32 +#ifdef _WIN32 iconFile += ".ico"; #else iconFile += ".png"; #endif iconFile = resman->getPath(iconFile); logger->log("Loading icon from file: %s", iconFile.c_str()); -#ifdef WIN32 +#ifdef _WIN32 static SDL_SysWMinfo pInfo; SDL_GetWMInfo(&pInfo); // Attempt to load icon from .ico file @@ -1069,7 +1069,7 @@ void Client::action(const gcn::ActionEvent &event) void Client::initRootDir() { mRootDir = PHYSFS_getBaseDir(); -#ifdef WIN32 +#ifdef _WIN32 std::string portableName = mRootDir + "portable.xml"; struct stat statbuf; @@ -1135,7 +1135,7 @@ void Client::initHomeDir() #elif defined __HAIKU__ mLocalDataDir = std::string(PHYSFS_getUserDir()) + "/config/data/Mana"; -#elif defined WIN32 +#elif defined _WIN32 mLocalDataDir = getSpecialFolderLocation(CSIDL_LOCAL_APPDATA); if (mLocalDataDir.empty()) mLocalDataDir = std::string(PHYSFS_getUserDir()); @@ -1163,7 +1163,7 @@ void Client::initHomeDir() mConfigDir = std::string(PHYSFS_getUserDir()) + "/config/settings/Mana" + branding.getValue("appName", "manasource"); -#elif defined WIN32 +#elif defined _WIN32 mConfigDir = getSpecialFolderLocation(CSIDL_APPDATA); if (mConfigDir.empty()) mConfigDir = mLocalDataDir; @@ -1315,7 +1315,7 @@ void Client::initUpdatesDir() { if (!resman->mkdir("/" + mUpdatesDir)) { -#if defined WIN32 +#if defined _WIN32 std::string newDir = mLocalDataDir + "\\" + mUpdatesDir; std::string::size_type loc = newDir.find("/", 0); @@ -1351,7 +1351,7 @@ void Client::initScreenshotDir() } else if (mScreenshotDir.empty()) { -#ifdef WIN32 +#ifdef _WIN32 mScreenshotDir = getSpecialFolderLocation(CSIDL_MYPICTURES); if (mScreenshotDir.empty()) mScreenshotDir = getSpecialFolderLocation(CSIDL_DESKTOP); -- cgit v1.2.3-70-g09d2