1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-01-30 16:34:29 +00:00

fixed windows build error

This commit is contained in:
orignal 2017-04-13 14:44:38 -04:00
parent c29acd61a1
commit 6e3d5aa530

View File

@ -3,9 +3,6 @@
#include <array> #include <array>
#include <openssl/sha.h> #include <openssl/sha.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#ifdef WIN32
#include <winsock2.h> // for htoll
#endif
#include "Gost.h" #include "Gost.h"
namespace i2p namespace i2p
@ -360,7 +357,8 @@ namespace crypto
} }
} }
#ifdef WIN32 #ifdef WIN32
ll[i] = htoll (c); for (int k = 0; k < 8; k++)
buf[k] = ((uint8_t *)&c)[7-k];
#else #else
ll[i] = htobe64 (c); // TODO: ll[i] = htobe64 (c); // TODO:
#endif #endif