mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-25 07:35:51 -07:00
Add ZT_DEFAULT_HOME_PATH
This commit is contained in:
parent
2fac693243
commit
303050da0b
1 changed files with 4 additions and 0 deletions
|
@ -363,6 +363,9 @@ std::vector<std::string> OSUtils::split(const char *s,const char *const sep,cons
|
|||
|
||||
std::string OSUtils::platformDefaultHomePath()
|
||||
{
|
||||
#ifdef ZT_DEFAULT_HOME_PATH
|
||||
return ZT_DEFAULT_HOME_PATH;
|
||||
#else
|
||||
#ifdef __UNIX_LIKE__
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
@ -395,6 +398,7 @@ std::string OSUtils::platformDefaultHomePath()
|
|||
#endif
|
||||
|
||||
#endif // __UNIX_LIKE__ or not...
|
||||
#endif
|
||||
}
|
||||
|
||||
// Inline these massive JSON operations in one place only to reduce binary footprint and compile time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue