Update timezone to C99
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 21 Nov 2025 12:01:30 +0000 (13:01 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 21 Nov 2025 12:07:40 +0000 (13:07 +0100)
commite6be84356bbbaf9f88b6a738e690d6fdff6fe483
tree6040a4040bf0fcffcb21d8f22b0e552bf48de1a5
parent97e04c74bedb902327b89eb8a9e6aea01aabdad2
Update timezone to C99

This reverts changes done in PostgreSQL over the upstream code to
avoid relying on C99 <stdint.h> and <inttypes.h>.

In passing, there were a few other minor and cosmetic changes that I
left in to improve alignment with upstream, including some C11 feature
use (_Noreturn).

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/9ad2749f-77ab-4ecb-a321-1ca915480b05%40eisentraut.org
src/timezone/README
src/timezone/localtime.c
src/timezone/pgtz.h
src/timezone/private.h
src/timezone/zic.c
src/tools/pgindent/typedefs.list