summaryrefslogtreecommitdiff
path: root/tools/minicargo/path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/minicargo/path.cpp')
-rw-r--r--tools/minicargo/path.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/minicargo/path.cpp b/tools/minicargo/path.cpp
index 93281e0f..12e505bb 100644
--- a/tools/minicargo/path.cpp
+++ b/tools/minicargo/path.cpp
@@ -2,6 +2,7 @@
*/
#include "path.h"
#if _WIN32
+# include <Windows.h>
#else
# include <unistd.h> // getcwd/chdir
#endif
@@ -41,6 +42,8 @@ helpers::path helpers::path::to_absolute() const
return *this;
#if _WIN32
+ char cwd[1024];
+ GetCurrentDirectoryA(sizeof(cwd), cwd);
#else
char cwd[1024];
if( !getcwd(cwd, sizeof(cwd)) )