From b8a13ede0a44417255f4b74e1af10b203ca1234a Mon Sep 17 00:00:00 2001 From: kelson42 Date: Thu, 19 Apr 2012 16:22:45 +0000 Subject: [PATCH] + small windows adaptation to the function to get the exe full path --- src/common/pathTools.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/pathTools.cpp b/src/common/pathTools.cpp index cd6c0e1cb..65cd4da6a 100644 --- a/src/common/pathTools.cpp +++ b/src/common/pathTools.cpp @@ -22,6 +22,8 @@ #ifdef __APPLE__ #include #include +#elif _WIN32 +#include #endif #ifndef PATH_MAX @@ -140,6 +142,7 @@ string getExecutablePath() { char binRootPath[PATH_MAX]; #ifdef _WIN32 + GetModuleFileName( NULL, binRootPath, PATH_MAX); #elif __APPLE__ uint32_t max = (uint32_t)PATH_MAX; _NSGetExecutablePath(binRootPath, &max);