diff options
Diffstat (limited to 'src/timezone/private.h')
-rw-r--r-- | src/timezone/private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/timezone/private.h b/src/timezone/private.h index a952c4dc30d..533e3d9f4ed 100644 --- a/src/timezone/private.h +++ b/src/timezone/private.h @@ -44,6 +44,14 @@ /* Unlike <ctype.h>'s isdigit, this also works if c < 0 | c > UCHAR_MAX. */ #define is_digit(c) ((unsigned)(c) - '0' <= 9) +/* PG doesn't currently rely on <inttypes.h>, so work around strtoimax() */ +#undef strtoimax +#ifdef HAVE_STRTOLL +#define strtoimax strtoll +#else +#define strtoimax strtol +#endif + /* * Finally, some convenience items. |