From 472bf1014423f5a8736c2b854a7c7f6b8a81901d Mon Sep 17 00:00:00 2001 From: Dagen Brock Date: Sun, 30 Oct 2016 18:11:23 -0700 Subject: [PATCH] added winsdl defs and removed utimes call --- src/host_fst.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/host_fst.c b/src/host_fst.c index c7dcf5c..4644ddf 100644 --- a/src/host_fst.c +++ b/src/host_fst.c @@ -22,7 +22,7 @@ #endif -#ifdef _WIN32 +#if defined(_WIN32) || defined(WIN_SDL) #include #include //#define ftruncate(a,b) _chsize(a,b) @@ -418,7 +418,7 @@ static void get_file_xinfo(const char *path, struct file_info *fi) { close(fd); } } -#elif defined(__linux__) || defined(_WIN32) +#elif defined(__linux__) || defined(_WIN32) || defined(WIN_SDL) static void get_file_xinfo(const char *path, struct file_info *fi) { ssize_t tmp; @@ -617,7 +617,7 @@ static word32 set_file_info(const char *path, struct file_info *fi) { } return 0; } -#elif defined(__linux__) || defined(_WIN32) +#elif defined(__linux__) || defined(_WIN32) || defined(WIN_SDL) static word32 set_file_info(const char *path, struct file_info *fi) { if (fi->has_fi && fi->storage_type != 0x0d) { @@ -634,9 +634,9 @@ static word32 set_file_info(const char *path, struct file_info *fi) { times[0] = 0; // access times[1].tv_sec = fi.modified_date; // modified -*/ int ok = utimes(path); if (ok < 0) return map_errno(); +*/ } return 0; } @@ -1356,7 +1356,7 @@ static int open_resource_fork(const char *path, word16 *access, word16 *error) { } -#elif defined _WIN32 +#elif defined(_WIN32) || defined(WIN_SDL) static int open_resource_fork(const char *path, word16 *access, word16 *error) { char *rpath = append_string(path, ":" XATTR_RESOURCEFORK_NAME);