Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75887 - trunk/tools/build/v2/engine
From: steven_at_[hidden]
Date: 2011-12-10 15:31:32


Author: steven_watanabe
Date: 2011-12-10 15:31:32 EST (Sat, 10 Dec 2011)
New Revision: 75887
URL: http://svn.boost.org/trac/boost/changeset/75887

Log:
Handle paths beginning with '\' on NT.
Text files modified:
   trunk/tools/build/v2/engine/pathunix.c | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: trunk/tools/build/v2/engine/pathunix.c
==============================================================================
--- trunk/tools/build/v2/engine/pathunix.c (original)
+++ trunk/tools/build/v2/engine/pathunix.c 2011-12-10 15:31:32 EST (Sat, 10 Dec 2011)
@@ -293,6 +293,12 @@
         return;
     }
 
+ if ( short_path[0] == '\\' && short_path[1] == '\0')
+ {
+ string_push_back( out, '\\' );
+ return;
+ }
+
     if ( short_path[1] == ':' &&
         ( short_path[2] == '\0' ||
         ( short_path[2] == '\\' && short_path[3] == '\0' ) ) )


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk