mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-03 13:28:44 +00:00
Remove mg_stat
This commit is contained in:
1 parent
7e1d4325ec
commit
d6dbf831f7
8 files changed
+63
-53
No files matched your search
@@ -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) {
|
||||
//}
|
||||
Reference in new issue
Block a user