summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-07 23:02:28 +0000
committerrubidium <rubidium@openttd.org>2009-03-07 23:02:28 +0000
commitf5c1365471301f70ad06813e8b7f7b1ed514b47c (patch)
tree49e1ebf1f94eabea647fc522b6eefab37793b9e9
parent642dc1ea5e74a3d6a717d0ba4ceca8e48c405915 (diff)
downloadopenttd-f5c1365471301f70ad06813e8b7f7b1ed514b47c.tar.xz
(svn r15641) -Fix: some gcc compilers seem to be chosing the C++ standard for strrchr, others the C standard...
-rw-r--r--src/fileio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 32ad5c2fc..74ea8e91e 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -807,7 +807,7 @@ void ChangeWorkingDirectory(const char *exe)
if (app_bundle != NULL) app_bundle[0] = '\0';
#endif /* WITH_COCOA */
- char *s = strrchr(exe, PATHSEPCHAR);
+ char *s = (char*)strrchr(exe, PATHSEPCHAR);
if (s != NULL) {
*s = '\0';
#if defined(__DJGPP__)