diff options
author | membar <membar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-07 15:36:56 +0000 |
---|---|---|
committer | membar <membar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-07 15:36:56 +0000 |
commit | ff91c5cb18a952936827618f86473431c594303f (patch) | |
tree | 55e57df1e8cc65a4835fcb6e831793b428d4c6e4 | |
parent | 40620918843a61892b39493a17492b65ce536350 (diff) |
* jcf-path.c (jcf_path_compute): Use platform PATH_SEPARATOR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcj/gcj-eclipse-merge-branch@119624 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/jcf-path.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 866df8518c9..e78890e1851 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2006-12-07 Mohan Embar <gnustuff@thisiscool.com> + + * jcf-path.c (jcf_path_compute): Use platform PATH_SEPARATOR. + 2006-12-06 Mohan Embar <gnustuff@thisiscool.com> * lang-specs.h: Pass '%U'-based options as separate arguments. diff --git a/gcc/java/jcf-path.c b/gcc/java/jcf-path.c index 96ef01b3a82..7baef2e35e9 100644 --- a/gcc/java/jcf-path.c +++ b/gcc/java/jcf-path.c @@ -457,6 +457,9 @@ jcf_path_next (void *x) return (void *) ent->next; } +static const char +PATH_SEPARATOR_STR[] = {PATH_SEPARATOR, '\0'}; + char * jcf_path_compute (const char *prefix) { @@ -474,7 +477,7 @@ jcf_path_compute (const char *prefix) for (iter = sealed; iter != NULL; iter = iter->next) { if (! first) - strcat (result, ":"); + strcat (result, PATH_SEPARATOR_STR); first = 0; strcat (result, iter->name); /* Ugly: we want to strip the '/' from zip entries when |