aboutsummaryrefslogtreecommitdiff
path: root/libiberty/lbasename.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2004-01-26 19:11:55 +0000
committerDavid Carlton <carlton@bactrian.org>2004-01-26 19:11:55 +0000
commitfeff3e492f1aff01b62a61e38e20fc7e8fc89946 (patch)
tree08c456fb63098f7b46e1dfa74746c8ab87a74e8c /libiberty/lbasename.c
parentaa0e88e3d758559942e192f3075a3edc0b2f222d (diff)
downloadgdb-feff3e492f1aff01b62a61e38e20fc7e8fc89946.zip
gdb-feff3e492f1aff01b62a61e38e20fc7e8fc89946.tar.gz
gdb-feff3e492f1aff01b62a61e38e20fc7e8fc89946.tar.bz2
2004-01-26 David Carlton <carlton@kealia.com>carlton_dictionary-branch
* Merge with mainline; tag is carlton_dictionary-20040126-merge.
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 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)