summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: affcba7)
raw | patch | inline | side by side (parent: affcba7)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 31 Jan 2021 13:50:14 +0000 (16:50 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 31 Jan 2021 13:50:14 +0000 (16:50 +0300) |
src/files.c | patch | blob | history | |
src/save.c | patch | blob | history |
diff --git a/src/files.c b/src/files.c
index d78389ff4da1ea5d7038d5eb93ace9be11695d39..a659f26c47a0569307e1d07479c3b17e6ee890e1 100644 (file)
--- a/src/files.c
+++ b/src/files.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <sys/stat.h>
+#ifdef UNIX
+# include <sys/stat.h>
+#endif
#include "files.h"
#include "map.h"
#include "my.h"
diff --git a/src/save.c b/src/save.c
index 27534214bf681a495663bd351bb60061bcf3c056..fda50f90baa7ce53a53d846e2b21fb7c8cda5729 100644 (file)
--- a/src/save.c
+++ b/src/save.c
#include <stdio.h> // FILE
#include <string.h>
-#include <sys/stat.h>
+#ifdef UNIX
+# include <sys/stat.h>
+#endif
#include "files.h"
#include "my.h"
static char fn[] = "savgame0.dat";
static char p[100];
fn[7] = n + '0';
-#ifndef WIN32
+#ifdef UNIX
char *e = getenv("HOME");
strncpy(p, e, 60);
strcat(p, "/.flatwaifu");