diff options
author | David Rowley <drowley@postgresql.org> | 2020-11-24 13:09:35 +1300 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2020-11-24 13:09:35 +1300 |
commit | 1fa22a43a56e1fe44c7bb3a3d5ef31be5bcac41d (patch) | |
tree | b4a32ec58c0c685936267aae8d7efbfc8f54e16b /src/backend/access/transam/xlogutils.c | |
parent | 913ec71d682e99852cc188a7edbdccd02d42b4b3 (diff) | |
download | postgresql-1fa22a43a56e1fe44c7bb3a3d5ef31be5bcac41d.tar.gz postgresql-1fa22a43a56e1fe44c7bb3a3d5ef31be5bcac41d.zip |
Fix unportable usage of __has_attribute
This should fix the breakages caused by 697e1d02f, which seems to break
the build for GCC version < 5.
It seems, according to the GCC manual that __has_attribute is a "special
operator" and must be tested without any other conditions in the
preprocessor test.
Per recommendation from the GCC manual via Greg Nancarrow
Reported-by: Greg Nancarrow
Discussion: https://postgr.es/m/CAJcOf-euSu8fhC10v476o9dqnjqKysVs1_vRms-_fvajpZ3kFw@mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
0 files changed, 0 insertions, 0 deletions