| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #pragma once
- #include "pikaConfig.h"
- #include <filesystem>
- #include <logs/assert.h>
- #ifdef PIKA_WINDOWS
- #define NOMINMAX
- #include <Windows.h>
- namespace pika
- {
-
- struct FileChanged
- {
-
- std::filesystem::path path;
- FILETIME time = {};
- void setFile(const char *path);
- bool changed();
-
- private:
-
- };
-
- #else
-
-
- struct FileChanged
- {
-
-
- std::filesystem::path path;
-
- void setFile(const char *path) {}
- bool changed()
- {
- PIKA_PERMA_ASSERT(0, "file changed only supported on windows");
- return 0;
- }
-
-
- };
-
- #endif
- };
|