filesystem rework

This commit is contained in:
2023-02-09 01:42:10 +06:00
parent 29a5b22286
commit 835bc5e834
10 changed files with 177 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
#include "../base/std.h"
#if defined(_WIN64) || defined(_WIN32)
#define KFS_USE_WINDOWS_H 1
#else
#define KFS_USE_WINDOWS_H 0
#endif
#if KFS_USE_WINDOWS_H
#include <windows.h>
#else
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#endif