summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
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"