Re: Fix compiler warnings on 64-bit Windows - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Fix compiler warnings on 64-bit Windows
Date
Msg-id 51ea19db-8094-5cc7-658b-f6f2efcc2626@2ndquadrant.com
Whole thread Raw
In response to Re: Fix compiler warnings on 64-bit Windows  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Fix compiler warnings on 64-bit Windows
List pgsql-hackers
On 2020-02-14 15:52, Tom Lane wrote:
> Yeah, I think that the C99 requirement has obsoleted a number of configure
> tests and related hackery in c.h.  We just haven't got round to cleaning
> that up yet.
> 
> BTW: I'm still concerned about the possibility of the C library being
> less than C99.  The model that was popular back then, and which still
> exists on e.g. gaur, was that you could install a C99 *compiler* on
> a pre-C99 system, and the compiler would bring its own standard header
> files as necessary.  While I don't have the machine booted up to check,
> I'm pretty sure that gaur's <stdint.h> is being supplied by the gcc
> installation not directly from /usr/include.  On the other hand, that
> compiler installation is still dependent on the vendor-supplied libc.

Yeah, stdint.h belongs to the compiler, whereas intttypes.h belongs to 
the C library.  So if we require a C99 compiler we can get rid of all 
tests and workarounds for stdint.h missing.  Patch attached.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Asif Rehman
Date:
Subject: Re: WIP/PoC for parallel backup
Next
From: Fujii Masao
Date:
Subject: Re: small improvement of the elapsed time for truncating heap invacuum