summaryrefslogtreecommitdiff
path: root/libiberty/lbasename.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@mvista.com>2003-12-22 19:21:37 +0000
committerDaniel Jacobowitz <drow@gcc.gnu.org>2003-12-22 19:21:37 +0000
commit6b309c6e575004e3805183aa2599fc6a4e356432 (patch)
tree7d3c261a345f630d03ad5939023099202a9148de /libiberty/lbasename.c
parent3b3ed1280043554815a3384a66331c114617b127 (diff)
downloadgcc-6b309c6e575004e3805183aa2599fc6a4e356432.tar.gz
re PR other/13272 (libiberty/lbasename.c has incorrect DIR_SEPARATOR)
PR debug/13272 * Makefile.in (lbasename.o): Depend on filenames.h. * lbasename.c: Include "filenames.h" instead of defining its macros locally. From-SVN: r74943
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)