mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-30 08:24:20 +00:00
fixed windows build error
This commit is contained in:
parent
c29acd61a1
commit
6e3d5aa530
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user