Skip to content

Commit 720be6a

Browse files
committed
fix mac/linux compile issue
1 parent 241bd58 commit 720be6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/src/http/client/curl/http_operation_curl.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,8 @@ CURLcode HttpOperation::Setup()
11131113
}
11141114
else
11151115
{
1116-
rc = SetCurlPtrOption(CURLOPT_WRITEFUNCTION, HttpOperation::WriteVectorBodyCallback);
1116+
rc = SetCurlPtrOption(CURLOPT_WRITEFUNCTION,
1117+
reinterpret_cast<void *>(&HttpOperation::WriteVectorBodyCallback));
11171118
if (rc != CURLE_OK)
11181119
{
11191120
return rc;
@@ -1125,7 +1126,8 @@ CURLcode HttpOperation::Setup()
11251126
return rc;
11261127
}
11271128

1128-
rc = SetCurlPtrOption(CURLOPT_HEADERFUNCTION, HttpOperation::WriteVectorHeaderCallback);
1129+
rc = SetCurlPtrOption(CURLOPT_HEADERFUNCTION,
1130+
reinterpret_cast<void *>(&HttpOperation::WriteVectorHeaderCallback));
11291131
if (rc != CURLE_OK)
11301132
{
11311133
return rc;

0 commit comments

Comments
 (0)