File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,6 @@ using ssize_t = int;
144
144
145
145
#include < io.h>
146
146
#include < winsock2.h>
147
-
148
- #include < wincrypt.h>
149
147
#include < ws2tcpip.h>
150
148
151
149
#ifndef WSA_FLAG_NO_HANDLE_INHERIT
@@ -154,8 +152,6 @@ using ssize_t = int;
154
152
155
153
#ifdef _MSC_VER
156
154
#pragma comment(lib, "ws2_32.lib")
157
- #pragma comment(lib, "crypt32.lib")
158
- #pragma comment(lib, "cryptui.lib")
159
155
#endif
160
156
161
157
#ifndef strcasecmp
@@ -220,14 +216,20 @@ using socket_t = int;
220
216
#include < thread>
221
217
222
218
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
223
- // these are defined in wincrypt.h and it breaks compilation if BoringSSL is
224
- // used
225
219
#ifdef _WIN32
220
+ #include < wincrypt.h>
221
+
222
+ // these are defined in wincrypt.h and it breaks compilation if BoringSSL is used
226
223
#undef X509_NAME
227
224
#undef X509_CERT_PAIR
228
225
#undef X509_EXTENSIONS
229
226
#undef PKCS7_SIGNER_INFO
227
+
228
+ #ifdef _MSC_VER
229
+ #pragma comment(lib, "crypt32.lib")
230
+ #pragma comment(lib, "cryptui.lib")
230
231
#endif
232
+ #endif // _WIN32
231
233
232
234
#include < openssl/err.h>
233
235
#include < openssl/evp.h>
You can’t perform that action at this time.
0 commit comments