mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-08 22:08:02 +00:00
Fix errors compiling on OS X
e.g. Undefined symbols for architecture x86_64: "_quarkhash", referenced from: _quarkcoin_test in sgminer-quarkcoin.o _quarkcoin_regenhash in sgminer-quarkcoin.o _scanhash_quarkcoin in sgminer-quarkcoin.o See: http://clang.llvm.org/compatibility.html#inline
This commit is contained in:
parent
387bb28952
commit
cd9d037a2e
@ -52,6 +52,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void animehash(void *state, const void *input)
|
||||
{
|
||||
sph_blake512_context ctx_blake;
|
||||
|
@ -106,6 +106,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void bitblockhash(void *state, const void *input)
|
||||
{
|
||||
init_Bhash_contexts();
|
||||
|
@ -75,6 +75,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void freshHash(void *state, const void *input)
|
||||
{
|
||||
init_freshHash_contexts();
|
||||
|
@ -47,6 +47,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void fuguehash(void *state, const void *input)
|
||||
{
|
||||
sph_fugue256_context ctx_fugue;
|
||||
|
@ -51,6 +51,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void groestlhash(void *state, const void *input)
|
||||
{
|
||||
sph_groestl512_context ctx_groestl;
|
||||
|
@ -90,6 +90,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
dst[i] = htobe32(src[i]);
|
||||
}
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void inkhash(void *state, const void *input)
|
||||
{
|
||||
uint32_t hash[16];
|
||||
|
@ -100,6 +100,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void maruhash(void *state, const void *input)
|
||||
{
|
||||
init_Mhash_contexts();
|
||||
|
@ -51,6 +51,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void mghash(void *state, const void *input)
|
||||
{
|
||||
sph_groestl512_context ctx_groestl;
|
||||
|
@ -52,6 +52,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void quarkhash(void *state, const void *input)
|
||||
{
|
||||
sph_blake512_context ctx_blake;
|
||||
|
@ -77,6 +77,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void qhash(void *state, const void *input)
|
||||
{
|
||||
init_Qhash_contexts();
|
||||
|
@ -52,6 +52,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void sifhash(void *state, const void *input)
|
||||
{
|
||||
sph_blake512_context ctx_blake;
|
||||
|
@ -72,6 +72,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void talkhash(void *state, const void *input)
|
||||
{
|
||||
init_Nhash_contexts();
|
||||
|
@ -53,6 +53,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void twehash(void *state, const void *input)
|
||||
{
|
||||
sph_fugue256_context ctx_fugue;
|
||||
|
@ -69,6 +69,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void whirlcoin_hash(void *state, const void *input)
|
||||
{
|
||||
init_whirlcoin_hash_contexts();
|
||||
|
@ -101,6 +101,9 @@ static inline void be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len
|
||||
}
|
||||
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void x14hash(void *state, const void *input)
|
||||
{
|
||||
init_X14hash_contexts();
|
||||
|
Loading…
Reference in New Issue
Block a user