Re: [HACKERS] Missing SIZE_MAX - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] Missing SIZE_MAX
Date
Msg-id 20170901155047.jukv5urifxbydm3d@alvherre.pgsql
Whole thread Raw
In response to [HACKERS] Missing SIZE_MAX  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] Missing SIZE_MAX
List pgsql-hackers
Tom Lane wrote:

> We have a workaround for that symbol in timezone/private.h:
> 
> #ifndef SIZE_MAX
> #define SIZE_MAX ((size_t) -1)
> #endif
> 
> and a bit of grepping finds other places that are using the (size_t) -1
> trick explicitly.  So what I'm tempted to do is move the above stanza
> into c.h.

Sounds good to me.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] Missing SIZE_MAX
Next
From: Greg Stark
Date:
Subject: Re: [HACKERS] log_destination=file