fix compile error on windows; fix compile error when ssl is off

This commit is contained in:
Chunting Gu
2021-04-16 19:18:40 +08:00
parent f5210ba1a2
commit f5f72d7897
2 changed files with 13 additions and 15 deletions
-12
View File
@@ -1,17 +1,5 @@
#include "webcc/socket.h"
#if WEBCC_ENABLE_SSL
#if (defined(_WIN32) || defined(_WIN64))
#include <cryptuiapi.h>
#include <wincrypt.h>
#include <windows.h>
#include "openssl/x509.h"
#endif // defined(_WIN32) || defined(_WIN64)
#endif // WEBCC_ENABLE_SSL
#include "boost/asio/connect.hpp"
#include "boost/asio/read.hpp"
#include "boost/asio/write.hpp"