aboutsummaryrefslogtreecommitdiff
path: root/libbutl/sha256.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-09-23 00:14:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-09-23 00:14:37 +0200
commit63d2400a2c1cff42a8e3ea3d8b4c77b862c82bc7 (patch)
tree6c86fc57033b472818bdc89c873b204d8fafbc6e /libbutl/sha256.cxx
parentc09cd7512491cee1e82c1ad8128ce9fd4bc3f79b (diff)
Undo modularization hacks for VC
Diffstat (limited to 'libbutl/sha256.cxx')
-rw-r--r--libbutl/sha256.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/libbutl/sha256.cxx b/libbutl/sha256.cxx
index b0b7301..be29871 100644
--- a/libbutl/sha256.cxx
+++ b/libbutl/sha256.cxx
@@ -32,7 +32,7 @@ extern "C"
#include <cstddef>
#include <cstdint>
-#include <cctype> // isxdigit(), toupper(), tolower()
+#include <cctype> // isxdigit()
#include <stdexcept> // invalid_argument
#endif
@@ -52,6 +52,9 @@ import std.core;
#endif
#endif
+import butl.utility; // *case()
+#else
+#include <libbutl/utility.mxx>
#endif
using namespace std;
@@ -128,7 +131,7 @@ namespace butl
if (i > 0 && i % 2 == 0)
f += ":";
- f += toupper (c); //@@ MOD revert to ucase()
+ f += ucase (c);
}
return f;
@@ -158,7 +161,7 @@ namespace butl
if (!isxdigit (c))
bad ();
- s += tolower (c); //@@ MOD revert to lcase()
+ s += lcase (c);
}
}