소스 검색

Use 'inline'

yhirose 6 년 전
부모
커밋
4f4e6f2140
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -77,7 +77,7 @@ typedef int socket_t;
 #include <openssl/x509v3.h>
 
 #if OPENSSL_VERSION_NUMBER < 0x10100000L
-static const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1) {
+inline const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1) {
   return M_ASN1_STRING_data(asn1);
 }
 #endif