| 155 | } |
| 156 | |
| 157 | void remove_file (const std::string& filename) |
| 158 | { |
| 159 | if (!DeleteFileA(filename.c_str())) { |
| 160 | DWORD error = GetLastError(); |
| 161 | if (error == ERROR_FILE_NOT_FOUND) { |
| 162 | return; |
| 163 | } else { |
| 164 | throw System_error("DeleteFileA", filename, error); |
| 165 | } |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | static void init_std_streams_platform () |
| 170 | { |
nothing calls this directly
no test coverage detected