From 4fd47f10aea3693604a88496aa8e12356c89b50b Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 22 Dec 2003 19:22:57 +0000 Subject: * Makefile.in (lbasename.o): Depend on filenames.h. * lbasename.c: Include "filenames.h" instead of defining its macros locally. --- libiberty/lbasename.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'libiberty/lbasename.c') diff --git a/libiberty/lbasename.c b/libiberty/lbasename.c index 43cb73f..200a87f 100644 --- a/libiberty/lbasename.c +++ b/libiberty/lbasename.c @@ -40,25 +40,7 @@ and a path ending in @code{/} returns the empty string after it. #include "ansidecl.h" #include "libiberty.h" #include "safe-ctype.h" - -#ifndef DIR_SEPARATOR -# define DIR_SEPARATOR '/' -#endif - -#if defined (_WIN32) || defined (__MSDOS__) \ - || defined (__DJGPP__) || defined (__OS2__) -# define HAVE_DOS_BASED_FILE_SYSTEM -# ifndef DIR_SEPARATOR_2 -# define DIR_SEPARATOR_2 '\\' -# endif -#endif - -#ifndef DIR_SEPARATOR_2 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) -#else -# define IS_DIR_SEPARATOR(ch) \ - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) -#endif +#include "filenames.h" const char * lbasename (name) -- cgit v1.1