summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorMumit Khan <khan@xraylith.wisc.edu>2000-01-07 00:16:51 +0000
committerMumit Khan <khan@gcc.gnu.org>2000-01-07 00:16:51 +0000
commitd5b6516da59be3d5c0481f7982a2f7deb0e398bb (patch)
tree76c2e81cb4ecf30110d84cedbc8ba3f93ead30be /gcc/system.h
parent44545f2790236cd08166d65185dc9ad879b9fef0 (diff)
downloadgcc-d5b6516da59be3d5c0481f7982a2f7deb0e398bb.tar.gz
cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and IS_DIR_SEPARATOR macros.
2000-01-06 Mumit Khan <khan@xraylith.wisc.edu> * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and IS_DIR_SEPARATOR macros. * collect2.c: Likewise. * cppinit.c: Likewise. * dwarf2out.c: Likewise. * gcc.c: Likewise. * gcov.c: Likewise. * prefix.c: Likewise. * rtl.c: Likewise. * toplev.c: Likewise. * system.h: And move to here. From-SVN: r31264
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index b3f89e39f71..431b32fa2ca 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -528,6 +528,23 @@ extern void abort PARAMS ((void));
# endif
#endif /* ! HOST_PTR_PRINTF */
+/* By default, colon separates directories in a path. */
+#ifndef PATH_SEPARATOR
+#define PATH_SEPARATOR ':'
+#endif
+
+#ifndef DIR_SEPARATOR
+#define DIR_SEPARATOR '/'
+#endif
+
+/* Define IS_DIR_SEPARATOR. */
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
/* Get libiberty declarations. */
#include "libiberty.h"