File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -174,18 +174,15 @@ typedef int (*secp256k1_nonce_function)(
174
174
# define SECP256K1_API __declspec (dllimport)
175
175
# define SECP256K1_API_VAR extern __declspec (dllimport)
176
176
# endif
177
- #endif
178
- #ifndef SECP256K1_API
179
- # if defined(__GNUC__ ) && (__GNUC__ >= 4 ) && defined(SECP256K1_BUILD )
180
- /* Building libsecp256k1 on non-Windows using GCC or compatible. */
181
- # define SECP256K1_API __attribute__ ((visibility ("default")))
182
- # define SECP256K1_API_VAR extern __attribute__ ((visibility ("default")))
183
- # else
177
+ #elif defined(__GNUC__ ) && (__GNUC__ >= 4 ) && defined(SECP256K1_BUILD )
178
+ /* Building libsecp256k1 on non-Windows using GCC or compatible. */
179
+ # define SECP256K1_API __attribute__ ((visibility ("default")))
180
+ # define SECP256K1_API_VAR extern __attribute__ ((visibility ("default")))
181
+ #else
184
182
/* Linking against libsecp256k1,
185
183
or building libsecp256k1 using an unknown compiler. */
186
- # define SECP256K1_API
187
- # define SECP256K1_API_VAR extern
188
- # endif
184
+ # define SECP256K1_API
185
+ # define SECP256K1_API_VAR extern
189
186
#endif
190
187
191
188
/* Warning attributes
You can’t perform that action at this time.
0 commit comments