@@ -138,24 +138,20 @@ typedef int (*secp256k1_nonce_function)(
138
138
#if defined(_WIN32 )
139
139
# ifdef SECP256K1_BUILD
140
140
# ifdef DLL_EXPORT
141
- # define SECP256K1_API __declspec (dllexport)
142
- # define SECP256K1_API_VAR extern __declspec (dllexport)
141
+ # define SECP256K1_API extern __declspec (dllexport)
143
142
# endif
144
143
/* The user must define SECP256K1_STATIC when consuming libsecp256k1 as a static
145
144
* library on Windows. */
146
145
# elif !defined(SECP256K1_STATIC )
147
146
/* Consuming libsecp256k1 as a DLL. */
148
- # define SECP256K1_API __declspec (dllimport)
149
- # define SECP256K1_API_VAR extern __declspec (dllimport)
147
+ # define SECP256K1_API extern __declspec (dllimport)
150
148
# endif
151
149
#endif
152
150
#ifndef SECP256K1_API
153
151
# if defined(__GNUC__ ) && (__GNUC__ >= 4 ) && defined(SECP256K1_BUILD )
154
- # define SECP256K1_API __attribute__ ((visibility ("default")))
155
- # define SECP256K1_API_VAR extern __attribute__ ((visibility ("default")))
152
+ # define SECP256K1_API extern __attribute__ ((visibility ("default")))
156
153
# else
157
- # define SECP256K1_API
158
- # define SECP256K1_API_VAR extern
154
+ # define SECP256K1_API extern
159
155
# endif
160
156
#endif
161
157
@@ -227,10 +223,10 @@ typedef int (*secp256k1_nonce_function)(
227
223
*
228
224
* It is highly recommended to call secp256k1_selftest before using this context.
229
225
*/
230
- SECP256K1_API_VAR const secp256k1_context * secp256k1_context_static ;
226
+ SECP256K1_API const secp256k1_context * secp256k1_context_static ;
231
227
232
228
/** Deprecated alias for secp256k1_context_static. */
233
- SECP256K1_API_VAR const secp256k1_context * secp256k1_context_no_precomp
229
+ SECP256K1_API const secp256k1_context * secp256k1_context_no_precomp
234
230
SECP256K1_DEPRECATED ("Use secp256k1_context_static instead" );
235
231
236
232
/** Perform basic self tests (to be used in conjunction with secp256k1_context_static)
@@ -627,10 +623,10 @@ SECP256K1_API int secp256k1_ecdsa_signature_normalize(
627
623
* If a data pointer is passed, it is assumed to be a pointer to 32 bytes of
628
624
* extra entropy.
629
625
*/
630
- SECP256K1_API_VAR const secp256k1_nonce_function secp256k1_nonce_function_rfc6979 ;
626
+ SECP256K1_API const secp256k1_nonce_function secp256k1_nonce_function_rfc6979 ;
631
627
632
628
/** A default safe nonce generation function (currently equal to secp256k1_nonce_function_rfc6979). */
633
- SECP256K1_API_VAR const secp256k1_nonce_function secp256k1_nonce_function_default ;
629
+ SECP256K1_API const secp256k1_nonce_function secp256k1_nonce_function_default ;
634
630
635
631
/** Create an ECDSA signature.
636
632
*
0 commit comments