Update timezone to C99

Peter Eisentraut <peter@eisentraut.org>

Commit: e6be84356bbbaf9f88b6a738e690d6fdff6fe483
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-11-21T12:07:40Z
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

Files

PathChange+/−
src/timezone/localtime.c modified +57 −56
src/timezone/pgtz.h modified +2 −2
src/timezone/private.h modified +12 −16
src/timezone/README modified +0 −14
src/timezone/zic.c modified +62 −73
src/tools/pgindent/typedefs.list modified +3 −0

Discussion