40 |
#include "ansidecl.h" |
#include "ansidecl.h" |
41 |
#include "libiberty.h" |
#include "libiberty.h" |
42 |
#include "safe-ctype.h" |
#include "safe-ctype.h" |
43 |
|
#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 |
|
44 |
|
|
45 |
const char * |
const char * |
46 |
lbasename (name) |
lbasename (name) |