diff --git a/include/crow/http_connection.h b/include/crow/http_connection.h index a483798f3..5671d5f0b 100644 --- a/include/crow/http_connection.h +++ b/include/crow/http_connection.h @@ -442,7 +442,7 @@ namespace crow size_t length = res.body.length(); for(size_t transferred = 0; transferred < length;) { - size_t to_transfer = std::min(16384UL, length-transferred); + size_t to_transfer = CROW_MIN(16384UL, length-transferred); buffers[0] = asio::const_buffer(data+transferred, to_transfer); do_write_sync(buffers); transferred += to_transfer;