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.
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.
Also fix the nullness requirements for schnorr nonce-pair generation.
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.
Looks good to me. This replaces #223, but I like this approach better.
Only thing I’m iffy about is the win32+static case, where we won’t want to set dllexport. libtool automatically sets -DDLL_EXPORT when building for a dll, I think we could take advantage of that like:
0# if defined(SECP256K1_BUILD) && defined(DLL_EXPORT)
1# define SECP256K1_EXPORT __declspec(dllexport)
2# else
whoops, s/WIN32/_WIN32/.
WIN32 isn’t picked up by my mingw install.