Use explicit symbol visibility.
The use of static makes this somewhat redundant currently, though if we later have multiple compilation units it will be needed. This also sets the dllexport needed for shared libraries on win32.
This commit is contained in:
@@ -16,7 +16,7 @@ extern "C" {
|
||||
* In: point: pointer to a public point
|
||||
* scalar: a 32-byte scalar with which to multiply the point
|
||||
*/
|
||||
SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdh(
|
||||
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdh(
|
||||
const secp256k1_context* ctx,
|
||||
unsigned char *result,
|
||||
const secp256k1_pubkey *point,
|
||||
|
||||
Reference in New Issue
Block a user