mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-02 19:26:31 -04:00
Rename DATA_DIR macro to less polluting RS_DATA_DIR
This commit is contained in:
parent
e55fa2b9d5
commit
94bd099407
5 changed files with 9 additions and 9 deletions
|
@ -841,14 +841,15 @@ static bool checkAccount(const std::string &accountdir, AccountDetails &account,
|
|||
|
||||
/* Use RetroShare's exe dir */
|
||||
dataDirectory = ".";
|
||||
#elif defined(ANDROID)
|
||||
#elif defined(__ANDROID__)
|
||||
// TODO: This is probably not really used on Android
|
||||
dataDirectory = PathBaseDirectory()+"/usr/share/retroshare";
|
||||
#elif defined(DATA_DIR)
|
||||
#elif defined(RS_DATA_DIR)
|
||||
// cppcheck-suppress ConfigurationNotChecked
|
||||
dataDirectory = DATA_DIR;
|
||||
dataDirectory = RS_DATA_DIR;
|
||||
// For all other OS the data directory must be set in libretroshare.pro
|
||||
#else
|
||||
# error "For your target OS automatic data dir discovery is not supported, cannot compile if DATA_DIR variable not set."
|
||||
# error "For your target OS automatic data dir discovery is not supported, cannot compile if RS_DATA_DIR variable not set."
|
||||
#endif
|
||||
|
||||
if (!check)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue