File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,14 @@ typedef int (*secp256k1_nonce_function)(
147
147
* 1. If using Libtool, it defines DLL_EXPORT automatically.
148
148
* 2. In other cases, SECP256K1_DLL_EXPORT must be defined. */
149
149
# define SECP256K1_API extern __declspec (dllexport)
150
+ # else
151
+ /* Building libsecp256k1 as a static library on Windows.
152
+ * No declspec is needed. One may be tempted to set
153
+ * __attribute__ ((visibility("default"))), but this may trigger warnings on
154
+ * GCC when compiling with -flto, despite the GCC manual (Section "Common
155
+ * Function Attributes") claiming that default visibility is supported
156
+ * everywhere, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116478 . */
157
+ # define SECP256K1_API extern
150
158
# endif
151
159
/* The user must define SECP256K1_STATIC when consuming libsecp256k1 as a static
152
160
* library on Windows. */
You can’t perform that action at this time.
0 commit comments