Skip to content

Commit

Permalink
Merge pull request #2 from maxpwr/mac-data-dir
Browse files Browse the repository at this point in the history
Change #ifdefs to put Mac data dir in the right place
  • Loading branch information
namecoin-qt committed Jun 17, 2013
2 parents 46b67a9 + cd4f0f6 commit 1868efe
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 1868efe

Please sign in to comment.