11 #elif defined(_MSC_VER) 12 #define WIN32_LEAN_AND_MEAN 23 #if defined(__ANDROID__) 24 struct stat statusBuffer;
25 if (stat(path, & statusBuffer) != 0)
29 return statusBuffer.st_size;
30 #elif defined(__unix__) 31 struct stat statusBuffer;
32 if (stat(path, & statusBuffer) != 0)
36 return static_cast<long long>(statusBuffer.st_size);
37 #elif defined(_MSC_VER) 38 WIN32_FILE_ATTRIBUTE_DATA attr;
39 if (::GetFileAttributesEx(path, GetFileExInfoStandard, &attr) == 0)
43 return attr.nFileSizeLow;
50 return remove(path) == 0;
51 #elif defined(_MSC_VER) 52 return ::DeleteFile(path);
bool Remove(const char *path)
long long GetFileSize(const char *path)