summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Options.cpp4
-rw-r--r--Options.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/Options.cpp b/Options.cpp
index acfb803..c862bb8 100644
--- a/Options.cpp
+++ b/Options.cpp
@@ -2,7 +2,11 @@
Options::Options() {
char _cwd[FILENAME_MAX];
+#ifdef WIN32
+ GetCurrentDirectory(FILENAME_MAX, _cwd);
+#else
getcwd(_cwd, FILENAME_MAX);
+#endif
std::string cwd(_cwd);
user = "";
diff --git a/Options.h b/Options.h
index 9440964..90be725 100644
--- a/Options.h
+++ b/Options.h
@@ -6,7 +6,6 @@
#include <sstream>
#include <fstream>
#include <vector>
-#include <unistd.h>
#include "Cryptor.h"