Browse Source

Fixed build error on non Windows environments with OpenSSL

yhirose 5 years ago
parent
commit
6cce7951fc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      httplib.h

+ 2 - 0
httplib.h

@@ -196,7 +196,9 @@ using socket_t = int;
 #include <openssl/ssl.h>
 #include <openssl/ssl.h>
 #include <openssl/x509v3.h>
 #include <openssl/x509v3.h>
 
 
+#ifdef _WIN32
 #include <openssl/applink.c>
 #include <openssl/applink.c>
+#endif
 
 
 #include <iomanip>
 #include <iomanip>
 #include <iostream>
 #include <iostream>