diff options
-rw-r--r-- | Options.cpp | 4 | ||||
-rw-r--r-- | Options.h | 1 |
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 = "";
@@ -6,7 +6,6 @@ #include <sstream>
#include <fstream>
#include <vector>
-#include <unistd.h>
#include "Cryptor.h"
|