Skip to content

Commit 0831063

Browse files
authored
Merge pull request yhirose#59 from adikabintang/master
add keyword inline to some function definitions to avoid linking error
2 parents 6aa3fd6 + ef5c414 commit 0831063

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

httplib.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ inline bool read_headers(Stream& strm, Headers& headers)
769769
return true;
770770
}
771771

772-
bool read_content_with_length(Stream& strm, std::string& out, size_t len, Progress progress)
772+
inline bool read_content_with_length(Stream& strm, std::string& out, size_t len, Progress progress)
773773
{
774774
out.assign(len, 0);
775775
size_t r = 0;
@@ -789,7 +789,7 @@ bool read_content_with_length(Stream& strm, std::string& out, size_t len, Progre
789789
return true;
790790
}
791791

792-
bool read_content_without_length(Stream& strm, std::string& out)
792+
inline bool read_content_without_length(Stream& strm, std::string& out)
793793
{
794794
for (;;) {
795795
char byte;
@@ -805,7 +805,7 @@ bool read_content_without_length(Stream& strm, std::string& out)
805805
return true;
806806
}
807807

808-
bool read_content_chunked(Stream& strm, std::string& out)
808+
inline bool read_content_chunked(Stream& strm, std::string& out)
809809
{
810810
const auto bufsiz = 16;
811811
char buf[bufsiz];

0 commit comments

Comments
 (0)