mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Do not define max twice.
This commit is contained in:
parent
24a76e1a8f
commit
706871e92e
@ -1,5 +1,7 @@
|
||||
2011-08-13 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||
|
||||
* retr.c (fd_read_body): Ensure max is not already defined.
|
||||
|
||||
* mswindows.h (snprintf): Remove definition.
|
||||
(vsnprintf): Likewise.
|
||||
|
||||
|
@ -207,6 +207,7 @@ fd_read_body (int fd, FILE *out, wgint toread, wgint startpos,
|
||||
wgint *qtyread, wgint *qtywritten, double *elapsed, int flags)
|
||||
{
|
||||
int ret = 0;
|
||||
#undef max
|
||||
#define max(a,b) ((a) > (b) ? (a) : (b))
|
||||
int dlbufsize = max (BUFSIZ, 8 * 1024);
|
||||
char *dlbuf = xmalloc (dlbufsize);
|
||||
|
Loading…
Reference in New Issue
Block a user