aboutsummaryrefslogtreecommitdiff
path: root/bpkg/checksum.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-10-24 12:24:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-10-24 12:24:11 +0200
commitdc0ac014bf24c91a1f17e5b3a56f0b687a6c4db8 (patch)
tree22d0973bb1e3e9e2618368f79d9401b583a1c9f9 /bpkg/checksum.cxx
parentbd42a54500e1a9e6113813f808c7726a7c24c1ad (diff)
Fix issues in previous commit
Diffstat (limited to 'bpkg/checksum.cxx')
-rw-r--r--bpkg/checksum.cxx9
1 files changed, 4 insertions, 5 deletions
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 <ios> // streamsize
#include <streambuf>
-#ifndef _WIN32
+#ifdef _WIN32
# include <algorithm> // 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 ());