summaryrefslogtreecommitdiff
path: root/src/timezone/pgtz.h
diff options
context:
space:
mode:
authorPeter Eisentraut2025-11-21 12:01:30 +0000
committerPeter Eisentraut2025-11-21 12:07:40 +0000
commite6be84356bbbaf9f88b6a738e690d6fdff6fe483 (patch)
tree6040a4040bf0fcffcb21d8f22b0e552bf48de1a5 /src/timezone/pgtz.h
parent97e04c74bedb902327b89eb8a9e6aea01aabdad2 (diff)
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
Diffstat (limited to 'src/timezone/pgtz.h')
-rw-r--r--src/timezone/pgtz.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timezone/pgtz.h b/src/timezone/pgtz.h
index 8caac631cab..ff595ce974a 100644
--- a/src/timezone/pgtz.h
+++ b/src/timezone/pgtz.h
@@ -25,7 +25,7 @@
struct ttinfo
{ /* time type information */
- int32 tt_utoff; /* UT offset in seconds */
+ int_fast32_t tt_utoff; /* UT offset in seconds */
bool tt_isdst; /* used to set tm_isdst */
int tt_desigidx; /* abbreviation list index */
bool tt_ttisstd; /* transition is std time */
@@ -35,7 +35,7 @@ struct ttinfo
struct lsinfo
{ /* leap second information */
pg_time_t ls_trans; /* transition time */
- int64 ls_corr; /* correction to apply */
+ int_fast64_t ls_corr; /* correction to apply */
};
struct state