From 6e3d5aa530fe1808be1c1489f5e8c2ea5baa86ff Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 13 Apr 2017 14:44:38 -0400 Subject: [PATCH] fixed windows build error --- src/Gost.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Gost.cpp b/src/Gost.cpp index 7d18e15..8981529 100644 --- a/src/Gost.cpp +++ b/src/Gost.cpp @@ -3,9 +3,6 @@ #include #include #include -#ifdef WIN32 -#include // for htoll -#endif #include "Gost.h" namespace i2p @@ -360,7 +357,8 @@ namespace crypto } } #ifdef WIN32 - ll[i] = htoll (c); + for (int k = 0; k < 8; k++) + buf[k] = ((uint8_t *)&c)[7-k]; #else ll[i] = htobe64 (c); // TODO: #endif