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:
parent
d08c15869a
commit
c29acd61a1
@ -3,6 +3,9 @@
|
|||||||
#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
|
||||||
@ -356,7 +359,11 @@ namespace crypto
|
|||||||
bit >>= 1;
|
bit >>= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef WIN32
|
||||||
|
ll[i] = htoll (c);
|
||||||
|
#else
|
||||||
ll[i] = htobe64 (c); // TODO:
|
ll[i] = htobe64 (c); // TODO:
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user