aboutsummaryrefslogtreecommitdiffstats
path: root/util/fileutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/fileutil.c')
-rw-r--r--util/fileutil.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/fileutil.c b/util/fileutil.c
index c2a2a9df2..0d49ef513 100644
--- a/util/fileutil.c
+++ b/util/fileutil.c
@@ -44,10 +44,12 @@ make_basename(const char *filepath)
char *p;
if ( !(p=strrchr(filepath, DIRSEP_C)) )
- #ifdef HAVE_DRIVE_LETTERS
+#ifdef HAVE_DRIVE_LETTERS
if ( !(p=strrchr(filepath, '\\')) )
if ( !(p=strrchr(filepath, ':')) )
- #endif
+#elif defined(__riscos__)
+ if ( !(p=strrchr(filepath, ':')) )
+#endif
{
return m_strdup(filepath);
}