Remove mg_stat

This commit is contained in:
Sergey Lyubka committed 2021-07-24 10:35:48 +01:00
1 parent 7e1d4325ec
commit d6dbf831f7
8 files changed
+63 -53

No files matched your search

+2 -9
View File
@@ -1,11 +1,4 @@
#include "fs.h"
int mg_stat(const char *path, mg_stat_t *st) {
#ifdef _WIN32
wchar_t tmp[MG_PATH_MAX];
MultiByteToWideChar(CP_UTF8, 0, path, -1, tmp, sizeof(tmp) / sizeof(tmp[0]));
return _wstati64(tmp, st);
#else
return stat(path, st);
#endif
}
// FILE *fopen_packed(const char *path, const char *mode) {
//}