aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-05-03 21:50:25 +0000
committerRichard Stallman <rms@gnu.org>1992-05-03 21:50:25 +0000
commit5c18abb46c50705d03f1825143c0a34462b0d255 (patch)
tree018b277450e03da3007bb0519fbd9e85eb84616e
parent051b153356786dd27bb401b7108226056d4b5581 (diff)
downloadgcc-5c18abb46c50705d03f1825143c0a34462b0d255.zip
gcc-5c18abb46c50705d03f1825143c0a34462b0d255.tar.gz
gcc-5c18abb46c50705d03f1825143c0a34462b0d255.tar.bz2
*** empty log message ***
From-SVN: r872
-rw-r--r--gcc/cccp.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index eb974de..a53a5a6 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -53,6 +53,11 @@ typedef unsigned char U_CHAR;
#define STDC_VALUE 1
#endif
+/* By default, colon separates directories in a path. */
+#ifndef PATH_SEPARATOR
+#define PATH_SEPARATOR ':'
+#endif
+
/* In case config.h defines these. */
#undef bcopy
#undef bzero
@@ -1459,12 +1464,14 @@ main (argc, argv)
num_dirs = 0;
while (1) {
/* Handle cases like c:/usr/lib:d:/gcc/lib */
- if ((*endp == ':'
+ if ((*endp == PATH_SEPARATOR
+#if 0 /* Obsolete, now that we use semicolons as the path separator. */
#ifdef __MSDOS__
&& (endp-startp != 1 || !isalpha (*startp)))
#endif
+#endif
)
- || (*endp == 0)) {
+ || *endp == 0) {
strncpy (nstore, startp, endp-startp);
if (endp == startp)
strcpy (nstore, ".");