From c29acd61a1937a6ad4ecf5deec1b6d3ca4c2b894 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 13 Apr 2017 14:29:43 -0400 Subject: [PATCH] fixed windows build error --- src/Gost.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Gost.cpp b/src/Gost.cpp index 86c35b9..7d18e15 100644 --- a/src/Gost.cpp +++ b/src/Gost.cpp @@ -3,6 +3,9 @@ #include #include #include +#ifdef WIN32 +#include // for htoll +#endif #include "Gost.h" namespace i2p @@ -356,7 +359,11 @@ namespace crypto bit >>= 1; } } +#ifdef WIN32 + ll[i] = htoll (c); +#else ll[i] = htobe64 (c); // TODO: +#endif } }