(svn r15641) -Fix: some gcc compilers seem to be chosing the C++ standard for strrchr, others the C standard...
This commit is contained in:
@@ -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__)
|
||||
|
Reference in New Issue
Block a user