summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-05 05:05:39 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-05 05:05:39 +0200
commit37aa109259ec72d7823804d1437d745c8bd1f185 (patch)
tree53440ab07eac4c4ba2eff27c520564ffaf5eaa90 /source
parente14e1d270cd25ebf02be66e9748e4b84ecbc4408 (diff)
downloadkit-37aa109259ec72d7823804d1437d745c8bd1f185.zip
windows fix; time
Diffstat (limited to 'source')
-rw-r--r--source/kit/file.c3
-rw-r--r--source/kit/mutex.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/source/kit/file.c b/source/kit/file.c
index 2d52e92..fcc2780 100644
--- a/source/kit/file.c
+++ b/source/kit/file.c
@@ -11,7 +11,10 @@ enum { PATH_BUF_SIZE = 4096 };
# define WIN32_LEAN_AND_MEAN 1
# endif
# include <stdint.h>
+
# include <Windows.h>
+
+# include <Shlwapi.h>
#else
# include <dirent.h>
# include <sys/stat.h>
diff --git a/source/kit/mutex.h b/source/kit/mutex.h
index ada3a5f..d427ea6 100644
--- a/source/kit/mutex.h
+++ b/source/kit/mutex.h
@@ -10,6 +10,10 @@
# include <time.h>
+# ifndef TIME_UTC
+# define TIME_UTC 1
+# endif
+
# if !defined(_WIN32) || defined(__CYGWIN__)
# include <pthread.h>
# endif