diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-26 15:55:35 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-26 15:55:35 +0000 |
commit | 2636e53e9e72a42d78ca6d9178f6ab7ca2e22928 (patch) | |
tree | 94ab0dd5bf50457303e7cbc8c374bd5477f8237d /libmenu | |
parent | 686b4c53227a73bce1a7136ccb2e419612233bc0 (diff) |
don't depend on libgen/basename()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9103 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmenu')
-rw-r--r-- | libmenu/menu_pt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmenu/menu_pt.c b/libmenu/menu_pt.c index 536b3918ab..42fc83531b 100644 --- a/libmenu/menu_pt.c +++ b/libmenu/menu_pt.c @@ -2,7 +2,7 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> -#include <libgen.h> +//#include <libgen.h> #include "../config.h" @@ -18,7 +18,7 @@ #include "../playtree.h" #include "../input/input.h" - +#define mp_basename(s) (strrchr((s),'/')==NULL?(char*)(s):(strrchr((s),'/')+1)) extern play_tree_iter_t* playtree_iter; @@ -127,7 +127,7 @@ static int op(menu_t* menu, char* args) { for( ; i != NULL ; i = i->next ) { e = calloc(1,sizeof(list_entry_t)); if(i->files) - e->p.txt = basename(i->files[0]); + e->p.txt = mp_basename(i->files[0]); else e->p.txt = "Group ..."; e->pt = i; |