File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -136,11 +136,20 @@ typedef int (*secp256k1_nonce_function)(
136
136
/* Symbol visibility. See https://gcc.gnu.org/wiki/Visibility */
137
137
/* DLL_EXPORT is defined internally for shared builds */
138
138
#if defined(_WIN32 ) || defined(__CYGWIN__ )
139
+ # if defined(SECP256K1_STATICLIB ) && defined(SECP256K1_DLL )
140
+ # error "At most one of SECP256K1_STATICLIB and SECP256K1_DLL must be defined."
141
+ # endif
139
142
# ifdef SECP256K1_BUILD
140
143
# ifdef DLL_EXPORT
141
144
# define SECP256K1_API __declspec (dllexport)
142
145
# define SECP256K1_API_VAR extern __declspec (dllexport)
143
146
# endif
147
+ # elif defined(SECP256K1_STATICLIB )
148
+ # define SECP256K1_API
149
+ # define SECP256K1_API_VAR extern
150
+ # elif defined(SECP256K1_DLL )
151
+ # define SECP256K1_API __declspec (dllimport)
152
+ # define SECP256K1_API_VAR extern __declspec (dllimport)
144
153
# elif defined _MSC_VER
145
154
# define SECP256K1_API
146
155
# define SECP256K1_API_VAR extern __declspec (dllimport)
You can’t perform that action at this time.
0 commit comments