From f5c1365471301f70ad06813e8b7f7b1ed514b47c Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 7 Mar 2009 23:02:28 +0000 Subject: [PATCH] (svn r15641) -Fix: some gcc compilers seem to be chosing the C++ standard for strrchr, others the C standard... --- src/fileio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio.cpp b/src/fileio.cpp index 32ad5c2fca..74ea8e91ee 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__)