summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/gpasmanfile.cpp
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/gpasmanfile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/gpasmanfile.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/pwmanager/pwmanager/gpasmanfile.cpp b/pwmanager/pwmanager/gpasmanfile.cpp
index f80bc13..ae34c83 100644
--- a/pwmanager/pwmanager/gpasmanfile.cpp
+++ b/pwmanager/pwmanager/gpasmanfile.cpp
@@ -46,3 +46,10 @@
#include <stdlib.h>
+#ifndef _WIN32_
#include <unistd.h>
+#else
+#include <io.h>
+#define S_IRUSR _S_IREAD
+#define S_IWUSR _S_IWRITE
+#define creat _creat
+#endif
#include <string.h>
@@ -64,3 +71,3 @@
-
+#ifndef _WIN32_
#if defined(PWM_DEBUG) && defined(GPASMANFILE_DEBUG)
@@ -70,2 +77,5 @@
#endif
+#else
+# define DBG
+#endif
@@ -412,3 +422,3 @@ int GpasmanFile::check_file(const char *filename)
}
-
+#ifndef _WIN32_
if (!S_ISREG(naamstat.st_mode)) {
@@ -420,3 +430,3 @@ int GpasmanFile::check_file(const char *filename)
}
-
+#endif
return (1);