diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-10-02 19:49:09 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:25:00 +0300 |
commit | a9966a11fc6d96e86fc75fc191e8eb1b63140fda (patch) | |
tree | a559eea759cda94708015e43041d8880ca9484a5 /platform/platform_linux.cpp | |
parent | fa80cfa7276f6940fbb17d0cc7625043651c9982 (diff) |
[linux] Build fixes
Diffstat (limited to 'platform/platform_linux.cpp')
-rw-r--r-- | platform/platform_linux.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/platform_linux.cpp b/platform/platform_linux.cpp index f3e1065b74..748fd50dcd 100644 --- a/platform/platform_linux.cpp +++ b/platform/platform_linux.cpp @@ -4,7 +4,9 @@ #include <unistd.h> #include <sys/stat.h> -static bool GetUserWritableDir(string & outDir) +#define LOCALAPPDATA_DIR "MapsWithMe" + +bool GetUserWritableDir(string & outDir) { char * path = ::getenv("HOME"); if (path) @@ -18,7 +20,7 @@ static bool GetUserWritableDir(string & outDir) } /// @return full path including binary itself -static bool GetPathToBinary(string & outPath) +bool GetPathToBinary(string & outPath) { char path[4096] = {0}; if (0 < ::readlink("/proc/self/exe", path, ARRAY_SIZE(path))) |