abi: Don't export symbols in static Windows libraries
libtool takes care of building both object versions, we just need to pick the right one to export symbols.
This commit is contained in:
parent
485f608fa9
commit
6f6cab9989
|
@ -141,9 +141,13 @@ typedef int (*secp256k1_nonce_function)(
|
||||||
# define SECP256K1_NO_BUILD
|
# define SECP256K1_NO_BUILD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** At secp256k1 build-time DLL_EXPORT is defined when building objects destined
|
||||||
|
* for a shared library, but not for those intended for static libraries.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef SECP256K1_API
|
#ifndef SECP256K1_API
|
||||||
# if defined(_WIN32)
|
# if defined(_WIN32)
|
||||||
# ifdef SECP256K1_BUILD
|
# if defined(SECP256K1_BUILD) && defined(DLL_EXPORT)
|
||||||
# define SECP256K1_API __declspec(dllexport)
|
# define SECP256K1_API __declspec(dllexport)
|
||||||
# else
|
# else
|
||||||
# define SECP256K1_API
|
# define SECP256K1_API
|
||||||
|
|
Loading…
Reference in New Issue