mirror of https://github.com/OpenTTD/OpenTTD
(svn r15641) -Fix: some gcc compilers seem to be chosing the C++ standard for strrchr, others the C standard...
parent
642dc1ea5e
commit
f5c1365471
|
@ -807,7 +807,7 @@ void ChangeWorkingDirectory(const char *exe)
|
||||||
|
|
||||||
if (app_bundle != NULL) app_bundle[0] = '\0';
|
if (app_bundle != NULL) app_bundle[0] = '\0';
|
||||||
#endif /* WITH_COCOA */
|
#endif /* WITH_COCOA */
|
||||||
char *s = strrchr(exe, PATHSEPCHAR);
|
char *s = (char*)strrchr(exe, PATHSEPCHAR);
|
||||||
if (s != NULL) {
|
if (s != NULL) {
|
||||||
*s = '\0';
|
*s = '\0';
|
||||||
#if defined(__DJGPP__)
|
#if defined(__DJGPP__)
|
||||||
|
|
Loading…
Reference in New Issue