summaryrefslogtreecommitdiff
path: root/libadhocutil/definedDirs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libadhocutil/definedDirs.h')
-rw-r--r--libadhocutil/definedDirs.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libadhocutil/definedDirs.h b/libadhocutil/definedDirs.h
index cbed012..b24a1c9 100644
--- a/libadhocutil/definedDirs.h
+++ b/libadhocutil/definedDirs.h
@@ -1,5 +1,5 @@
-#ifndef P2_UT_DEFINEDDIRS
-#define P2_UT_DEFINEDDIRS
+#ifndef ADHOCUTIL_DEFINEDDIRS_H
+#define ADHOCUTIL_DEFINEDDIRS_H
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/convenience.hpp>
@@ -10,8 +10,9 @@
#define XSTR(s) STR(s)
#define STR(s) #s
-const auto BinDir = boost::filesystem::canonical("/proc/self/exe").parent_path();
-const boost::filesystem::path RootDir(XSTR(ROOT));
+const auto selfExe = boost::filesystem::canonical("/proc/self/exe");
+const auto binDir = selfExe.parent_path();
+const boost::filesystem::path rootDir(XSTR(ROOT));
#endif