From d3cede7995487b8974a686ded1e20644b7e85540 Mon Sep 17 00:00:00 2001 From: EinMByte Date: Sat, 12 Sep 2015 14:19:12 +0200 Subject: [PATCH] Fix operating system detection in util.cpp. --- core/util/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/util/util.cpp b/core/util/util.cpp index a576bd09..870a771d 100644 --- a/core/util/util.cpp +++ b/core/util/util.cpp @@ -208,7 +208,7 @@ namespace filesystem #ifdef I2PD_CUSTOM_DATA_PATH return boost::filesystem::path(std::string(I2PD_CUSTOM_DATA_PATH)); #else -#ifdef WIN32 +#ifdef _WIN32 // Windows char localAppData[MAX_PATH]; SHGetFolderPath(NULL, CSIDL_APPDATA, 0, NULL, localAppData); @@ -220,7 +220,7 @@ namespace filesystem pathRet = boost::filesystem::path("/"); else pathRet = boost::filesystem::path(pszHome); -#ifdef MAC_OSX +#ifdef __APPLE__ // Mac pathRet /= "Library/Application Support"; boost::filesystem::create_directory(pathRet);