mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Require stdint.h
stdint.h belongs to the compiler (as opposed to inttypes.h), so by requiring a C99 compiler we can also require stdint.h unconditionally. Remove configure checks and other workarounds for it. This also removes a few steps in the required portability adjustments to the imported time zone code, which can be applied on the next import. When using GCC on a platform that is otherwise pre-C99, this will now require at least GCC 4.5, which is the first release that supplied a standard-conforming stdint.h if the native platform didn't have it. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/5d398bbb-262a-5fed-d839-d0e5cff3c0d7%402ndquadrant.com
This commit is contained in:
@ -275,7 +275,6 @@ sub GenerateFiles
|
||||
HAVE_INT_TIMEZONE => 1,
|
||||
HAVE_INT64 => undef,
|
||||
HAVE_INT8 => undef,
|
||||
HAVE_INTPTR_T => undef,
|
||||
HAVE_INTTYPES_H => undef,
|
||||
HAVE_INT_OPTERR => undef,
|
||||
HAVE_INT_OPTRESET => undef,
|
||||
@ -396,7 +395,6 @@ sub GenerateFiles
|
||||
HAVE_UCRED_H => undef,
|
||||
HAVE_UINT64 => undef,
|
||||
HAVE_UINT8 => undef,
|
||||
HAVE_UINTPTR_T => undef,
|
||||
HAVE_UNION_SEMUN => undef,
|
||||
HAVE_UNISTD_H => 1,
|
||||
HAVE_UNIX_SOCKETS => undef,
|
||||
@ -496,13 +494,11 @@ sub GenerateFiles
|
||||
_LARGEFILE_SOURCE => undef,
|
||||
_LARGE_FILES => undef,
|
||||
inline => '__inline',
|
||||
intptr_t => undef,
|
||||
pg_restrict => '__restrict',
|
||||
# not defined, because it'd conflict with __declspec(restrict)
|
||||
restrict => undef,
|
||||
signed => undef,
|
||||
typeof => undef,
|
||||
uintptr_t => undef,);
|
||||
typeof => undef,);
|
||||
|
||||
if ($self->{options}->{uuid})
|
||||
{
|
||||
|
Reference in New Issue
Block a user