Re: Fix compiler warnings on 64-bit Windows
От | Peter Eisentraut |
---|---|
Тема | Re: Fix compiler warnings on 64-bit Windows |
Дата | |
Msg-id | 51ea19db-8094-5cc7-658b-f6f2efcc2626@2ndquadrant.com обсуждение исходный текст |
Ответ на | Re: Fix compiler warnings on 64-bit Windows (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Fix compiler warnings on 64-bit Windows
|
Список | 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
Вложения
В списке pgsql-hackers по дате отправления: