1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 06:18:06 +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:
Nate Woolls 2015-01-12 21:50:20 -05:00
parent 387bb28952
commit cd9d037a2e
15 changed files with 45 additions and 0 deletions

View File

@ -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) inline void animehash(void *state, const void *input)
{ {
sph_blake512_context ctx_blake; sph_blake512_context ctx_blake;

View File

@ -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) inline void bitblockhash(void *state, const void *input)
{ {
init_Bhash_contexts(); init_Bhash_contexts();

View File

@ -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) inline void freshHash(void *state, const void *input)
{ {
init_freshHash_contexts(); init_freshHash_contexts();

View File

@ -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) inline void fuguehash(void *state, const void *input)
{ {
sph_fugue256_context ctx_fugue; sph_fugue256_context ctx_fugue;

View File

@ -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) inline void groestlhash(void *state, const void *input)
{ {
sph_groestl512_context ctx_groestl; sph_groestl512_context ctx_groestl;

View File

@ -90,6 +90,9 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
dst[i] = htobe32(src[i]); dst[i] = htobe32(src[i]);
} }
#ifdef __APPLE_CC__
static
#endif
inline void inkhash(void *state, const void *input) inline void inkhash(void *state, const void *input)
{ {
uint32_t hash[16]; uint32_t hash[16];

View File

@ -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) inline void maruhash(void *state, const void *input)
{ {
init_Mhash_contexts(); init_Mhash_contexts();

View File

@ -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) inline void mghash(void *state, const void *input)
{ {
sph_groestl512_context ctx_groestl; sph_groestl512_context ctx_groestl;

View File

@ -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) inline void quarkhash(void *state, const void *input)
{ {
sph_blake512_context ctx_blake; sph_blake512_context ctx_blake;

View File

@ -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) inline void qhash(void *state, const void *input)
{ {
init_Qhash_contexts(); init_Qhash_contexts();

View File

@ -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) inline void sifhash(void *state, const void *input)
{ {
sph_blake512_context ctx_blake; sph_blake512_context ctx_blake;

View File

@ -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) inline void talkhash(void *state, const void *input)
{ {
init_Nhash_contexts(); init_Nhash_contexts();

View File

@ -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) inline void twehash(void *state, const void *input)
{ {
sph_fugue256_context ctx_fugue; sph_fugue256_context ctx_fugue;

View File

@ -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) inline void whirlcoin_hash(void *state, const void *input)
{ {
init_whirlcoin_hash_contexts(); init_whirlcoin_hash_contexts();

View File

@ -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) inline void x14hash(void *state, const void *input)
{ {
init_X14hash_contexts(); init_X14hash_contexts();