Use C99 restrict via pg_restrict, rather than restrict directly.

Andres Freund <andres@anarazel.de>

Commit: 91d5f1a4a3e8aea2a6488243bac55806160408fb
Author: Andres Freund <andres@anarazel.de>
Date: 2017-10-12T23:17:35Z
Releases: 11.0
Use C99 restrict via pg_restrict, rather than restrict directly.

Unfortunately using 'restrict' plainly causes problems with MSVC,
which supports restrict only as '__restrict'. Defining 'restrict' to
'__restrict' unfortunately causes a conflict with MSVC's usage of
__declspec(restrict) in headers.

Therefore define pg_restrict to the appropriate keyword instead, and
replace existing usages.

This replaces the temporary workaround introduced in 36b4b91ba078.

Author: Andres Freund
Discussion: https://postgr.es/m/2656.1507830907@sss.pgh.pa.us

Files

PathChange+/−
configure modified +61 −46
configure.in modified +14 −1
src/include/libpq/pqformat.h modified +12 −12
src/include/pg_config.h.in modified +4 −0
src/include/pg_config.h.win32 modified +10 −12

Discussion