@@ -138,24 +138,20 @@ typedef int (*secp256k1_nonce_function)(
138138#if defined(_WIN32 )
139139# ifdef SECP256K1_BUILD
140140# ifdef DLL_EXPORT
141- # define SECP256K1_API __declspec (dllexport)
142- # define SECP256K1_API_VAR extern __declspec (dllexport)
141+ # define SECP256K1_API extern __declspec (dllexport)
143142# endif
144143 /* The user must define SECP256K1_STATIC when consuming libsecp256k1 as a static
145144 * library on Windows. */
146145# elif !defined(SECP256K1_STATIC )
147146 /* 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)
150148# endif
151149#endif
152150#ifndef SECP256K1_API
153151# 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")))
156153# else
157- # define SECP256K1_API
158- # define SECP256K1_API_VAR extern
154+ # define SECP256K1_API extern
159155# endif
160156#endif
161157
@@ -227,10 +223,10 @@ typedef int (*secp256k1_nonce_function)(
227223 *
228224 * It is highly recommended to call secp256k1_selftest before using this context.
229225 */
230- SECP256K1_API_VAR const secp256k1_context * secp256k1_context_static ;
226+ SECP256K1_API const secp256k1_context * secp256k1_context_static ;
231227
232228/** 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
234230SECP256K1_DEPRECATED ("Use secp256k1_context_static instead" );
235231
236232/** Perform basic self tests (to be used in conjunction with secp256k1_context_static)
@@ -627,10 +623,10 @@ SECP256K1_API int secp256k1_ecdsa_signature_normalize(
627623 * If a data pointer is passed, it is assumed to be a pointer to 32 bytes of
628624 * extra entropy.
629625 */
630- SECP256K1_API_VAR const secp256k1_nonce_function secp256k1_nonce_function_rfc6979 ;
626+ SECP256K1_API const secp256k1_nonce_function secp256k1_nonce_function_rfc6979 ;
631627
632628/** 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 ;
634630
635631/** Create an ECDSA signature.
636632 *
0 commit comments