diff options
author | Daniel Jacobowitz <dan@debian.org> | 2003-12-22 19:22:57 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2003-12-22 19:22:57 +0000 |
commit | 9f882782efb028531bd2df48451a868c2f3cd9e0 (patch) | |
tree | c7f4fd48166dbd3ac93e6668894cd4238f9d2e53 /libiberty/lbasename.c | |
parent | 18a058b10df195ec225e58c2749a6a28abd37aa7 (diff) | |
download | binutils-redhat-9f882782efb028531bd2df48451a868c2f3cd9e0.tar.gz |
* Makefile.in (lbasename.o): Depend on filenames.h.
* lbasename.c: Include "filenames.h" instead of defining
its macros locally.
Diffstat (limited to 'libiberty/lbasename.c')
-rw-r--r-- | libiberty/lbasename.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/libiberty/lbasename.c b/libiberty/lbasename.c index 43cb73f0a1..200a87f238 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) |