From cd9d037a2e800667c52a43f6f2aff13e431376ca Mon Sep 17 00:00:00 2001 From: Nate Woolls Date: Mon, 12 Jan 2015 21:50:20 -0500 Subject: [PATCH] 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 --- algorithm/animecoin.c | 3 +++ algorithm/bitblock.c | 3 +++ algorithm/fresh.c | 3 +++ algorithm/fuguecoin.c | 3 +++ algorithm/groestlcoin.c | 3 +++ algorithm/inkcoin.c | 3 +++ algorithm/marucoin.c | 3 +++ algorithm/myriadcoin-groestl.c | 3 +++ algorithm/quarkcoin.c | 3 +++ algorithm/qubitcoin.c | 3 +++ algorithm/sifcoin.c | 3 +++ algorithm/talkcoin.c | 3 +++ algorithm/twecoin.c | 3 +++ algorithm/whirlcoin.c | 3 +++ algorithm/x14.c | 3 +++ 15 files changed, 45 insertions(+) diff --git a/algorithm/animecoin.c b/algorithm/animecoin.c index 75f862af..93ee91b0 100644 --- a/algorithm/animecoin.c +++ b/algorithm/animecoin.c @@ -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; diff --git a/algorithm/bitblock.c b/algorithm/bitblock.c index 3c42e22c..1987359b 100644 --- a/algorithm/bitblock.c +++ b/algorithm/bitblock.c @@ -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(); diff --git a/algorithm/fresh.c b/algorithm/fresh.c index b58e90b1..883ced31 100644 --- a/algorithm/fresh.c +++ b/algorithm/fresh.c @@ -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(); diff --git a/algorithm/fuguecoin.c b/algorithm/fuguecoin.c index cc252633..faa6d7fc 100644 --- a/algorithm/fuguecoin.c +++ b/algorithm/fuguecoin.c @@ -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; diff --git a/algorithm/groestlcoin.c b/algorithm/groestlcoin.c index b49f5ada..f1f10935 100644 --- a/algorithm/groestlcoin.c +++ b/algorithm/groestlcoin.c @@ -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; diff --git a/algorithm/inkcoin.c b/algorithm/inkcoin.c index c0470550..abff2fdf 100644 --- a/algorithm/inkcoin.c +++ b/algorithm/inkcoin.c @@ -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]; diff --git a/algorithm/marucoin.c b/algorithm/marucoin.c index 82941581..38477d3f 100644 --- a/algorithm/marucoin.c +++ b/algorithm/marucoin.c @@ -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(); diff --git a/algorithm/myriadcoin-groestl.c b/algorithm/myriadcoin-groestl.c index e37c5a50..1d268f51 100644 --- a/algorithm/myriadcoin-groestl.c +++ b/algorithm/myriadcoin-groestl.c @@ -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; diff --git a/algorithm/quarkcoin.c b/algorithm/quarkcoin.c index 837a4cc3..a2e47d7f 100644 --- a/algorithm/quarkcoin.c +++ b/algorithm/quarkcoin.c @@ -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; diff --git a/algorithm/qubitcoin.c b/algorithm/qubitcoin.c index e6685153..547aed2a 100644 --- a/algorithm/qubitcoin.c +++ b/algorithm/qubitcoin.c @@ -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(); diff --git a/algorithm/sifcoin.c b/algorithm/sifcoin.c index 3e19d8b3..2787c2e6 100644 --- a/algorithm/sifcoin.c +++ b/algorithm/sifcoin.c @@ -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; diff --git a/algorithm/talkcoin.c b/algorithm/talkcoin.c index 7da83f15..16d6fa28 100644 --- a/algorithm/talkcoin.c +++ b/algorithm/talkcoin.c @@ -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(); diff --git a/algorithm/twecoin.c b/algorithm/twecoin.c index cb5583f5..97ca34a0 100644 --- a/algorithm/twecoin.c +++ b/algorithm/twecoin.c @@ -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; diff --git a/algorithm/whirlcoin.c b/algorithm/whirlcoin.c index 7aa61218..872566c9 100644 --- a/algorithm/whirlcoin.c +++ b/algorithm/whirlcoin.c @@ -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(); diff --git a/algorithm/x14.c b/algorithm/x14.c index 7a38eb28..7cc3279e 100644 --- a/algorithm/x14.c +++ b/algorithm/x14.c @@ -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();