postgresql/src/include/libpq
Peter Eisentraut fa16e7fd84 Revert "Replace pg_restrict by standard restrict"
This reverts commit f0f2c0c1ae.

The original problem that led to the use of pg_restrict was that MSVC
couldn't handle plain restrict, and defining it to something else
would conflict with its __declspec(restrict) that is used in system
header files.  In C11 mode, this is no longer a problem, as MSVC
handles plain restrict.  This led to the commit to replace pg_restrict
with restrict.  But this did not take C++ into account.  Standard C++
does not have restrict, so we defined it as something else (for
example, MSVC supports __restrict).  But this then again conflicts
with __declspec(restrict) in system header files.  So we have to
revert this attempt.  The comments are updated to clarify that the
reason for this is now C++ only.

Reported-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/CAGECzQRoD7chJP1-dneSrhxUJv%2BBRcigoGOO4UwGzaShLot2Yw%40mail.gmail.com
2026-01-14 15:12:25 +01:00
..
auth.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
be-fsstubs.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
be-gssapi-common.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
crypt.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
hba.h Fix pg_isblank() 2025-11-28 08:33:07 +01:00
ifaddr.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
libpq-be-fe-helpers.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
libpq-be-fe.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
libpq-be.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
libpq-fs.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
libpq.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
oauth.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg-gssapi.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pqcomm.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pqformat.h Revert "Replace pg_restrict by standard restrict" 2026-01-14 15:12:25 +01:00
pqmq.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pqsignal.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
protocol.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
sasl.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
scram.h Update copyright for 2026 2026-01-01 13:24:10 -05:00