Use correct preprocessor conditional in relptr.h master github/master
authorPeter Eisentraut <[email protected]>
Sat, 13 Dec 2025 18:56:09 +0000 (19:56 +0100)
committerPeter Eisentraut <[email protected]>
Sat, 13 Dec 2025 18:56:09 +0000 (19:56 +0100)
commit315342ffedf6b81f629c42e87bfaedbcc7211646
tree9b74bfab1eb0a6bededd18a3ce29afdf887a0860
parentabb331da0a3454aebdb416fd19baf289063c254b
Use correct preprocessor conditional in relptr.h

When relptr.h was added (commit fbc1c12a94a), there was no check for
HAVE_TYPEOF, so it used HAVE__BUILTIN_TYPES_COMPATIBLE_P, which
already existed (commit ea473fb2dee) and which was thought to cover
approximately the same compilers.  But the guarded code can also work
without HAVE__BUILTIN_TYPES_COMPATIBLE_P, and we now have a check for
HAVE_TYPEOF (commit 4cb824699e1), so let's fix this up to use the
correct logic.

Co-authored-by: Thomas Munro <[email protected]>
Discussion: https://www.postgresql.org/message-id/CA%2BhUKGL7trhWiJ4qxpksBztMMTWDyPnP1QN%2BLq341V7QL775DA%40mail.gmail.com
src/include/utils/relptr.h