another HAVE_X define that was never defined, and pointless

This commit is contained in:
Enno Rehling 2017-12-12 21:37:44 +01:00
parent 761f40f782
commit 2d3451d7b8
1 changed files with 2 additions and 4 deletions

View File

@ -1569,14 +1569,12 @@ int writegame(const char *filename)
create_directories(); create_directories();
join_path(datapath(), filename, path, sizeof(path)); join_path(datapath(), filename, path, sizeof(path));
#ifdef HAVE_UNISTD_H
/* make sure we don't overwrite an existing file (hard links) */ /* make sure we don't overwrite an existing file (hard links) */
if (remove(path) != 0) { if (remove(path) != 0) {
if (errno == ENOENT) { if (errno == ENOENT) {
errno = 0; errno = 0;
} }
} }
#endif
F = fopen(path, "wb"); F = fopen(path, "wb");
if (!F) { if (!F) {
perror(path); perror(path);