diff options
author | rubidium <rubidium@openttd.org> | 2009-03-07 23:02:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-07 23:02:28 +0000 |
commit | c71898461845992cf05f3e17e8ab871b2cc7f463 (patch) | |
tree | 49e1ebf1f94eabea647fc522b6eefab37793b9e9 | |
parent | 19c01ee0ecda046ab21c5042df34d5910f72c6bc (diff) | |
download | openttd-c71898461845992cf05f3e17e8ab871b2cc7f463.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.cpp | 2 |
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__) |