mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 20:34:41 +00:00
(svn r15641) -Fix: some gcc compilers seem to be chosing the C++ standard for strrchr, others the C standard...
This commit is contained in:
parent
642dc1ea5e
commit
f5c1365471
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user