From a9966a11fc6d96e86fc75fc191e8eb1b63140fda Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 2 Oct 2011 17:49:09 +0200 Subject: [linux] Build fixes --- platform/platform_linux.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'platform/platform_linux.cpp') 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 #include -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))) -- cgit v1.2.3