We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023ab20 commit 7f143deCopy full SHA for 7f143de
code/logic/sanity.c
@@ -78,6 +78,7 @@ int fossil_sanity_sys_create_file(const char* filename) {
78
79
int fossil_sanity_sys_file_exists(const char* filename) {
80
#ifdef _WIN32
81
+ #include <sys/stat.h> // Ensure the correct header is included for _stat
82
struct _stat buffer;
83
return (_stat(filename, &buffer) == 0); // On Windows, use the _stat function to check if the file exists.
84
#else
0 commit comments