summaryrefslogtreecommitdiff
path: root/libiberty/lbasename.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-12-22 19:22:57 +0000
committerDaniel Jacobowitz <drow@false.org>2003-12-22 19:22:57 +0000
commit4fd47f10aea3693604a88496aa8e12356c89b50b (patch)
treee98ff9d45a3182548e78b2f55a29c1e570d74fa7 /libiberty/lbasename.c
parentb6fb00c07bfde584d9359115ab6e0986627a21a0 (diff)
downloadbinutils-gdb-4fd47f10aea3693604a88496aa8e12356c89b50b.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.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/libiberty/lbasename.c b/libiberty/lbasename.c
index 43cb73f0a1d..200a87f2387 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)