From dc0ac014bf24c91a1f17e5b3a56f0b687a6c4db8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 24 Oct 2017 12:24:11 +0200 Subject: Fix issues in previous commit --- bpkg/checksum.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bpkg/checksum.cxx') diff --git a/bpkg/checksum.cxx b/bpkg/checksum.cxx index f990ae5..0ada207 100644 --- a/bpkg/checksum.cxx +++ b/bpkg/checksum.cxx @@ -7,7 +7,7 @@ #include // streamsize #include -#ifndef _WIN32 +#ifdef _WIN32 # include // replace() #endif @@ -146,10 +146,9 @@ namespace bpkg for (const string& o: ops) args.push_back (o.c_str ()); - // By some reason, MSYS2-based sha256sum utility prints the redundant - // backslash character at the beginning of the sum. This somehow depends on - // the presence of backslashes in the file path, so we just get rid of - // them. + // For some reason, MSYS2-based sha256sum utility prints stray backslash + // character at the beginning of the sum if the path contains a + // backslash. So we get rid of them. // #ifndef _WIN32 const string& f (file.string ()); -- cgit v1.1