* Makefile.in (lbasename.o): Depend on filenames.h.
* lbasename.c: Include "filenames.h" instead of defining its macros locally.
This commit is contained in:
parent
b6fb00c07b
commit
4fd47f10ae
3 changed files with 9 additions and 20 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2003-12-22 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
PR debug/13272
|
||||||
|
* Makefile.in (lbasename.o): Depend on filenames.h.
|
||||||
|
* lbasename.c: Include "filenames.h" instead of defining
|
||||||
|
its macros locally.
|
||||||
|
|
||||||
2003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
|
2003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
|
||||||
|
|
||||||
* cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
|
* cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
|
||||||
|
|
|
@ -451,7 +451,7 @@ hashtab.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/hashtab.h \
|
||||||
hex.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
hex.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
||||||
$(INCDIR)/safe-ctype.h
|
$(INCDIR)/safe-ctype.h
|
||||||
lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
||||||
$(INCDIR)/safe-ctype.h
|
$(INCDIR)/safe-ctype.h $(INCDIR)/filenames.h
|
||||||
lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
|
||||||
make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h \
|
make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h \
|
||||||
$(INCDIR)/libiberty.h
|
$(INCDIR)/libiberty.h
|
||||||
|
|
|
@ -40,25 +40,7 @@ and a path ending in @code{/} returns the empty string after it.
|
||||||
#include "ansidecl.h"
|
#include "ansidecl.h"
|
||||||
#include "libiberty.h"
|
#include "libiberty.h"
|
||||||
#include "safe-ctype.h"
|
#include "safe-ctype.h"
|
||||||
|
#include "filenames.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
|
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
lbasename (name)
|
lbasename (name)
|
||||||
|
|
Loading…
Reference in a new issue