@@ -138,8 +138,7 @@ 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 __declspec (dllexport)
143
142
# endif
144
143
/* The user must define SECP256K1_STATIC when consuming libsecp256k1 as a static
145
144
* library. */
@@ -148,17 +147,14 @@ typedef int (*secp256k1_nonce_function)(
148
147
* It does not depend on the Libtool's assumption that if a DLL is being built
149
148
* (DLL_EXPORT is defined) then that DLL is going to consume any dependent libraries
150
149
* as DLLs. See "Windows DLLs" in the Libtool manual. */
151
- # define SECP256K1_API __declspec (dllimport)
152
- # define SECP256K1_API_VAR extern __declspec (dllimport)
150
+ # define SECP256K1_API __declspec (dllimport)
153
151
# endif
154
152
#endif
155
153
#ifndef SECP256K1_API
156
154
# if defined(__GNUC__ ) && (__GNUC__ >= 4 ) && defined(SECP256K1_BUILD )
157
- # define SECP256K1_API __attribute__ ((visibility ("default")))
158
- # define SECP256K1_API_VAR extern __attribute__ ((visibility ("default")))
155
+ # define SECP256K1_API __attribute__ ((visibility ("default")))
159
156
# else
160
157
# define SECP256K1_API
161
- # define SECP256K1_API_VAR extern
162
158
# endif
163
159
#endif
164
160
@@ -230,10 +226,10 @@ typedef int (*secp256k1_nonce_function)(
230
226
*
231
227
* It is highly recommended to call secp256k1_selftest before using this context.
232
228
*/
233
- SECP256K1_API_VAR const secp256k1_context * secp256k1_context_static ;
229
+ SECP256K1_API extern const secp256k1_context * secp256k1_context_static ;
234
230
235
231
/** Deprecated alias for secp256k1_context_static. */
236
- SECP256K1_API_VAR const secp256k1_context * secp256k1_context_no_precomp
232
+ SECP256K1_API extern const secp256k1_context * secp256k1_context_no_precomp
237
233
SECP256K1_DEPRECATED ("Use secp256k1_context_static instead" );
238
234
239
235
/** Perform basic self tests (to be used in conjunction with secp256k1_context_static)
@@ -630,10 +626,10 @@ SECP256K1_API int secp256k1_ecdsa_signature_normalize(
630
626
* If a data pointer is passed, it is assumed to be a pointer to 32 bytes of
631
627
* extra entropy.
632
628
*/
633
- SECP256K1_API_VAR const secp256k1_nonce_function secp256k1_nonce_function_rfc6979 ;
629
+ SECP256K1_API extern const secp256k1_nonce_function secp256k1_nonce_function_rfc6979 ;
634
630
635
631
/** A default safe nonce generation function (currently equal to secp256k1_nonce_function_rfc6979). */
636
- SECP256K1_API_VAR const secp256k1_nonce_function secp256k1_nonce_function_default ;
632
+ SECP256K1_API extern const secp256k1_nonce_function secp256k1_nonce_function_default ;
637
633
638
634
/** Create an ECDSA signature.
639
635
*
0 commit comments