Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkcgen <kcgen@users.noreply.github.com>2022-10-06 05:39:06 +0300
committerkcgen <1557255+kcgen@users.noreply.github.com>2022-10-07 02:19:26 +0300
commit66ccc076e036aefd3ea48d526fbd691fe52e8a2c (patch)
tree74977517ede676a709fb464f352f55b6aba880c6 /include
parent6b7424a0e185b3f2338a39b2c892553167d7fccd (diff)
Add a filesystem util to configure from fs time to raw time_t
Diffstat (limited to 'include')
-rw-r--r--include/fs_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fs_utils.h b/include/fs_utils.h
index bb02bfe8d..25d381bbc 100644
--- a/include/fs_utils.h
+++ b/include/fs_utils.h
@@ -24,6 +24,7 @@
#include "config.h"
#include <cinttypes>
+#include <ctime>
#include <string>
#include "std_filesystem.h"
@@ -77,4 +78,7 @@ constexpr uint32_t OK_IF_EXISTS = 0x1;
int create_dir(const char *path, uint32_t mode, uint32_t flags = 0x0) noexcept;
+// Convert a filesystem time to a raw time_t value
+std::time_t to_time_t(const std_fs::file_time_type &fs_time);
+
#endif