summaryrefslogtreecommitdiff
path: root/strgen
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-10-02 22:39:56 +0000
committerDarkvater <Darkvater@openttd.org>2005-10-02 22:39:56 +0000
commite1acd38bc50484f74d351ec96be413d16755e56a (patch)
tree5bcc6532a22928d167bf464a1c93f8aafbefa0f6 /strgen
parent14cb6ac17c64cf2caa74f9b139b527d03ce352ec (diff)
downloadopenttd-e1acd38bc50484f74d351ec96be413d16755e56a.tar.xz
(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)
Fix warning in graph_gui.c with const problem
Diffstat (limited to 'strgen')
-rw-r--r--strgen/strgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/strgen/strgen.c b/strgen/strgen.c
index b6f6717b0..431077979 100644
--- a/strgen/strgen.c
+++ b/strgen/strgen.c
@@ -8,7 +8,7 @@
#include <stdlib.h>
#include <stdarg.h>
-#if !defined(WIN32) || defined(__CYGWIN__)
+#if (!defined(WIN32) && !defined(WIN64)) || defined(__CYGWIN__)
#include <unistd.h>
#endif
@@ -996,7 +996,7 @@ static void WriteStringsH(const char *filename)
unlink("tmp.xxx");
} else {
// else rename tmp.xxx into filename
-#if defined(WIN32)
+#if defined(WIN32) || defined(WIN64)
unlink(filename);
#endif
if (rename("tmp.xxx", filename) == -1) Fatal("rename() failed");