| 1205 | |
| 1206 | #if !defined(WIN32) && !defined(_WIN32) |
| 1207 | static bool does_file_exist(const char *filename) { |
| 1208 | struct stat st; |
| 1209 | int result = stat(filename, &st); |
| 1210 | return result == 0; |
| 1211 | } |
| 1212 | #else |
| 1213 | static bool does_file_exist(const char *filename) { |
| 1214 | return GetFileAttributes(filename) != INVALID_FILE_ATTRIBUTES; |
no test coverage detected