Skip to content

Commit

Permalink
Change #ifdefs to put Mac data dir in the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpwr committed Jun 15, 2013
1 parent c8bf4cc commit cd4f0f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ string GetDefaultDataDirSuffix() {
// Windows
return string("Namecoin");
#else
#ifdef __WXMAC_OSX__
#ifdef MAC_OSX
return string("Namecoin");
#else
return string(".namecoin");
Expand Down
2 changes: 1 addition & 1 deletion src/namecoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2207,7 +2207,7 @@ string GetDefaultDataDirSuffix() {
// Windows
return string("Namecoin");
#else
#ifdef __WXMAC_OSX__
#ifdef MAC_OSX
return string("Namecoin");
#else
return string(".namecoin");
Expand Down
2 changes: 1 addition & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ string GetDefaultDataDir()
string strHome = pszHome;
if (strHome[strHome.size()-1] != '/')
strHome += '/';
#ifdef __WXMAC_OSX__
#ifdef MAC_OSX
// Mac
strHome += "Library/Application Support/";
filesystem::create_directory(strHome.c_str());
Expand Down

0 comments on commit cd4f0f6

Please sign in to comment.