summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 7969c9341..2d569314a 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -25,15 +25,13 @@
#include "configlistener.h"
#include "log.h"
+#include "utils/paths.h"
#include "utils/stringutils.h"
#include "utils/xml.h"
#include <libxml/encoding.h>
#include <stdlib.h>
-#ifdef WIN32
-#define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
-#endif
#include "debug.h"
@@ -400,9 +398,7 @@ void Configuration::init(const std::string &filename, bool useResManager)
else
{
mConfigPath = filename;
- char *realPath = realpath(getFileDir(filename).c_str(), NULL);
- mDirectory = realPath;
- free(realPath);
+ mDirectory = getRealPath(getFileDir(filename));
}
if (!doc.rootNode())