Skip to content

Commit

Permalink
fix compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NaN-git committed Feb 12, 2018
1 parent d516b28 commit 23a6c0a
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 66 deletions.
5 changes: 1 addition & 4 deletions algorithm/animecoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ 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)
static inline void animehash(void *state, const void *input)
{
sph_blake512_context ctx_blake;
sph_bmw512_context ctx_bmw;
Expand Down
5 changes: 1 addition & 4 deletions algorithm/bitblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ 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)
static inline void bitblockhash(void *state, const void *input)
{
init_Bhash_contexts();

Expand Down
2 changes: 1 addition & 1 deletion algorithm/blake256.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)

static const uint32_t diff1targ_blake256 = 0x000000ff;

inline void blake256hash(void *state, const void *input)
static inline void blake256hash(void *state, const void *input)
{
sph_blake256_context ctx_blake;
sph_blake256_init(&ctx_blake);
Expand Down
2 changes: 1 addition & 1 deletion algorithm/blakecoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)

static const uint32_t diff1targ_blake256 = 0x000000ff;

inline void blakecoinhash(void *state, const void *input)
void blakecoinhash(void *state, const void *input)
{
sph_blake256_context ctx_blake;
sph_blake256_init(&ctx_blake);
Expand Down
2 changes: 1 addition & 1 deletion algorithm/credits.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static const uint32_t diff1targ = 0x0000ffff;



inline void credits_hash(void *state, const void *input)
static inline void credits_hash(void *state, const void *input)
{
sph_sha256_context sha1, sha2;
uint32_t hash[8], hash2[8];
Expand Down
5 changes: 1 addition & 4 deletions algorithm/fresh.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ 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)
static inline void freshHash(void *state, const void *input)
{
init_freshHash_contexts();

Expand Down
5 changes: 1 addition & 4 deletions algorithm/fuguecoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ 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)
static inline void fuguehash(void *state, const void *input)
{
sph_fugue256_context ctx_fugue;
sph_fugue256_init(&ctx_fugue);
Expand Down
5 changes: 1 addition & 4 deletions algorithm/groestlcoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ 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)
static inline void groestlhash(void *state, const void *input)
{
sph_groestl512_context ctx_groestl;

Expand Down
5 changes: 1 addition & 4 deletions algorithm/inkcoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ 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)
static inline void inkhash(void *state, const void *input)
{
uint32_t hash[16];
sph_shavite512_context ctx_shavite;
Expand Down
2 changes: 1 addition & 1 deletion algorithm/lyra2re.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
}


inline void lyra2rehash(void *state, const void *input)
static inline void lyra2rehash(void *state, const void *input)
{
sph_blake256_context ctx_blake;
sph_groestl256_context ctx_groestl;
Expand Down
2 changes: 1 addition & 1 deletion algorithm/lyra2rev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
}


inline void lyra2rev2hash(void *state, const void *input)
static inline void lyra2rev2hash(void *state, const void *input)
{
sph_blake256_context ctx_blake;
sph_bmw256_context ctx_bmw;
Expand Down
5 changes: 1 addition & 4 deletions algorithm/marucoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ 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)
static inline void maruhash(void *state, const void *input)
{
init_Mhash_contexts();

Expand Down
5 changes: 1 addition & 4 deletions algorithm/myriadcoin-groestl.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ 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)
static inline void mghash(void *state, const void *input)
{
sph_groestl512_context ctx_groestl;
sph_sha256_context ctx_sha2;
Expand Down
2 changes: 1 addition & 1 deletion algorithm/pluck.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void sha256_hash512(unsigned char *hash, const unsigned char *data)
be32enc((uint32_t *)hash + i, S[i]);
}

inline void pluckrehash(void *state, const void *input)
static inline void pluckrehash(void *state, const void *input)
{

int i,j;
Expand Down
5 changes: 1 addition & 4 deletions algorithm/quarkcoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ 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)
static inline void quarkhash(void *state, const void *input)
{
sph_blake512_context ctx_blake;
sph_bmw512_context ctx_bmw;
Expand Down
5 changes: 1 addition & 4 deletions algorithm/qubitcoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ 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)
static inline void qhash(void *state, const void *input)
{
init_Qhash_contexts();

Expand Down
5 changes: 1 addition & 4 deletions algorithm/sifcoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ 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)
static inline void sifhash(void *state, const void *input)
{
sph_blake512_context ctx_blake;
sph_bmw512_context ctx_bmw;
Expand Down
5 changes: 1 addition & 4 deletions algorithm/talkcoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ 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)
static inline void talkhash(void *state, const void *input)
{
init_Nhash_contexts();

Expand Down
5 changes: 1 addition & 4 deletions algorithm/twecoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ 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)
static inline void twehash(void *state, const void *input)
{
sph_fugue256_context ctx_fugue;
sph_shavite256_context ctx_shavite;
Expand Down
5 changes: 1 addition & 4 deletions algorithm/whirlcoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ 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)
static inline void whirlcoin_hash(void *state, const void *input)
{
init_whirlcoin_hash_contexts();

Expand Down
5 changes: 1 addition & 4 deletions algorithm/x14.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ 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)
static inline void x14hash(void *state, const void *input)
{
init_X14hash_contexts();

Expand Down

0 comments on commit 23a6c0a

Please sign in to comment.