add mayfly fd for Win32/POSIX

This commit is contained in:
guoling
2025-04-18 21:52:05 +08:00
parent 608d775bf6
commit f0e80ad484
5 changed files with 116 additions and 37 deletions
-2
View File
@@ -48,8 +48,6 @@ typedef int (*renameat2_t)(int old_dir_fd, const char* old_path, int new_dir_fd,
namespace mmkv {
extern bool getFileSize(int fd, size_t &size);
bool tryAtomicRename(const MMKVPath_t &srcPath, const MMKVPath_t &dstPath) {
bool renamed = false;