secp256k1/include
Tim Ruffing 914276e4d2 build: Add SECP256K1_API_VAR to fix importing variables from DLLs
This fixes a build issue with MSVC. While MSVC imports *functions*
from DLLs automatically when building a consumer of the DLL, it does
not import *variables* automatically. In these cases, we need an
explicit __declspec(dllimport).

This commit simply changes our logic to what the libtool manual
suggests, which has a very comprehensive writeup on the topic. Note
that in particular, this solution is carefully designed not to break
static linking. However, as described in the libtool manual,
statically linking the library with MSVC will output warning LNK4217.
This is still the best solution overall, because the warning is
merely a cosmetic issue.
2023-02-06 21:44:56 +01:00
..
secp256k1.h build: Add SECP256K1_API_VAR to fix importing variables from DLLs 2023-02-06 21:44:56 +01:00
secp256k1_ecdh.h build: Add SECP256K1_API_VAR to fix importing variables from DLLs 2023-02-06 21:44:56 +01:00
secp256k1_extrakeys.h docs: Get rid of "initialized for signing" terminology 2022-12-05 11:26:44 +01:00
secp256k1_preallocated.h contexts: Forbid cloning/destroying secp256k1_context_static 2023-01-18 16:39:31 +01:00
secp256k1_recovery.h docs: Get rid of "initialized for signing" terminology 2022-12-05 11:26:44 +01:00
secp256k1_schnorrsig.h build: Add SECP256K1_API_VAR to fix importing variables from DLLs 2023-02-06 21:44:56 +01:00