don't depend on libgen/basename()

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9103 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-01-26 15:55:35 +00:00
parent 686b4c5322
commit 2636e53e9e
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <libgen.h> //#include <libgen.h>
#include "../config.h" #include "../config.h"
@ -18,7 +18,7 @@
#include "../playtree.h" #include "../playtree.h"
#include "../input/input.h" #include "../input/input.h"
#define mp_basename(s) (strrchr((s),'/')==NULL?(char*)(s):(strrchr((s),'/')+1))
extern play_tree_iter_t* playtree_iter; 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 ) { for( ; i != NULL ; i = i->next ) {
e = calloc(1,sizeof(list_entry_t)); e = calloc(1,sizeof(list_entry_t));
if(i->files) if(i->files)
e->p.txt = basename(i->files[0]); e->p.txt = mp_basename(i->files[0]);
else else
e->p.txt = "Group ..."; e->p.txt = "Group ...";
e->pt = i; e->pt = i;