Fix some compile problems on weird/old compilers.
The visibility attribute is a GCC 4+ feature. GCC 2.95 also warns about the unsigned/signed comparision.
This commit is contained in:
@@ -134,7 +134,7 @@ typedef int (*secp256k1_nonce_function)(
|
||||
# else
|
||||
# define SECP256K1_API
|
||||
# endif
|
||||
# elif defined(__GNUC__) && defined(SECP256K1_BUILD)
|
||||
# elif defined(__GNUC__) && (__GNUC__ >= 4) && defined(SECP256K1_BUILD)
|
||||
# define SECP256K1_API __attribute__ ((visibility ("default")))
|
||||
# else
|
||||
# define SECP256K1_API
|
||||
|
||||
Reference in New Issue
Block a user