summaryrefslogtreecommitdiffstats
path: root/jnlib/stringhelp.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-04-21 14:56:40 +0200
committerWerner Koch <wk@gnupg.org>2006-04-21 14:56:40 +0200
commit4459fcb032268d6164ce70ab750f7b6baded9bf2 (patch)
tree8726c450d6750d110809c70cb0be27f716ab90b9 /jnlib/stringhelp.c
parentContinued with merging. (diff)
downloadgnupg2-4459fcb032268d6164ce70ab750f7b6baded9bf2.tar.xz
gnupg2-4459fcb032268d6164ce70ab750f7b6baded9bf2.zip
Still merging 1.4.3 code back
Diffstat (limited to 'jnlib/stringhelp.c')
-rw-r--r--jnlib/stringhelp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/jnlib/stringhelp.c b/jnlib/stringhelp.c
index 760398b0c..e999170dd 100644
--- a/jnlib/stringhelp.c
+++ b/jnlib/stringhelp.c
@@ -234,15 +234,19 @@ length_sans_trailing_ws (const unsigned char *line, size_t len)
*
*/
char *
-make_basename(const char *filepath)
+make_basename(const char *filepath, const char *inputpath)
{
char *p;
+#ifdef __riscos__
+ return riscos_make_basename(filepath, inputpath);
+#endif
+
if ( !(p=strrchr(filepath, '/')) )
- #ifdef HAVE_DRIVE_LETTERS
+#ifdef HAVE_DRIVE_LETTERS
if ( !(p=strrchr(filepath, '\\')) )
if ( !(p=strrchr(filepath, ':')) )
- #endif
+#endif
{
return jnlib_xstrdup(filepath);
}