浏览代码

Fixed build errors

yhirose 6 年之前
父节点
当前提交
6fe6fd5dbe
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      httplib.h

+ 2 - 0
httplib.h

@@ -820,6 +820,7 @@ inline void Post(std::vector<Request> &requests, const char *path,
   Post(requests, path, Headers(), body, content_type);
 }
 
+#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
 class SSLServer : public Server {
 public:
   SSLServer(const char *cert_path, const char *private_key_path,
@@ -1253,6 +1254,7 @@ private:
   time_t read_timeout_sec_;
   time_t read_timeout_usec_;
 };
+#endif
 
 class BufferStream : public Stream {
 public: