From db86b4e2d1e82f9dbc099a769a35e910172739ef Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 7 May 2003 16:07:40 +0000 Subject: [PATCH] On NT, force backslashes during binding phase so that files will be found. This used to be taken care of by path_build, but now that we're trying to preserve slash direction there, we need this here. [SVN r18345] --- historic/jam/src/timestamp.c | 9 ++++++++- jam_src/timestamp.c | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/historic/jam/src/timestamp.c b/historic/jam/src/timestamp.c index 88d2bdc50..fb0b7d405 100644 --- a/historic/jam/src/timestamp.c +++ b/historic/jam/src/timestamp.c @@ -83,7 +83,14 @@ timestamp( p = path.value; do - *p = tolower( *p ); + { + *p = tolower( *p ); +# ifdef NT + /* On NT, we must use backslashes or the file won't be found. */ + if (*p == '/') + *p = PATH_DELIM; +# endif + } while( *p++ ); target = path.value; diff --git a/jam_src/timestamp.c b/jam_src/timestamp.c index 88d2bdc50..fb0b7d405 100644 --- a/jam_src/timestamp.c +++ b/jam_src/timestamp.c @@ -83,7 +83,14 @@ timestamp( p = path.value; do - *p = tolower( *p ); + { + *p = tolower( *p ); +# ifdef NT + /* On NT, we must use backslashes or the file won't be found. */ + if (*p == '/') + *p = PATH_DELIM; +# endif + } while( *p++ ); target = path.value;