mirror of
https://github.com/curl/curl.git
synced 2026-08-05 13:26:21 +03:00
bufq: define SIZE_MAX if missing
This commit is contained in:
parent
05407422fb
commit
c4ccc56261
1 changed files with 4 additions and 0 deletions
|
|
@ -30,6 +30,10 @@
|
|||
#include "curl_memory.h"
|
||||
#include "memdebug.h"
|
||||
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX ((size_t) ~0)
|
||||
#endif
|
||||
|
||||
static bool chunk_is_empty(const struct buf_chunk *chunk)
|
||||
{
|
||||
return chunk->r_offset >= chunk->w_offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue