diff options
Diffstat (limited to 'util/fileutil.c')
-rw-r--r-- | util/fileutil.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/util/fileutil.c b/util/fileutil.c index e19d4bb76..1e56f147e 100644 --- a/util/fileutil.c +++ b/util/fileutil.c @@ -73,10 +73,10 @@ make_dirname(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 +#endif { return m_strdup(EXTSEP_S); } @@ -143,11 +143,11 @@ compare_filenames( const char *a, const char *b ) * resolve symlinks? */ #ifndef __riscos__ - #ifdef HAVE_DRIVE_LETTERS +#ifdef HAVE_DRIVE_LETTERS return ascii_strcasecmp(a,b); - #else +#else return strcmp(a,b); - #endif +#endif #else /* __riscos__ */ int c = 0; char *abuf, *bbuf; @@ -236,5 +236,3 @@ leave: iobuf_close( a ); return rc; } - - |