Skip to content

Commit 78c5d4f

Browse files
committed
Try to fix Windows
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 0203f4a commit 78c5d4f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/http/stream_curl.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,14 @@ auto Stream::send() -> std::future<Status> {
223223
handle_curl(curl_easy_setopt(this->internal->handle,
224224
CURLOPT_CUSTOMREQUEST, "PUT"));
225225
break;
226+
#ifdef WIN32
227+
#pragma push_macro("DELETE")
228+
#undef DELETE
229+
#endif
226230
case Method::DELETE:
231+
#ifdef WIN32
232+
#pragma pop_macro("DELETE")
233+
#endif
227234
handle_curl(curl_easy_setopt(this->internal->handle,
228235
CURLOPT_CUSTOMREQUEST, "DELETE"));
229236
break;

0 commit comments

Comments
 (0)