Use C99 restrict via pg_restrict, rather than restrict directly.
authorAndres Freund <andres@anarazel.de>
Thu, 12 Oct 2017 22:25:38 +0000 (15:25 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 12 Oct 2017 23:17:35 +0000 (16:17 -0700)
commit91d5f1a4a3e8aea2a6488243bac55806160408fb
treedf46b88f83af171650e73490749fe52aee20bffd
parent1c497fa72df7593d8976653538da3d0ab033207f
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
configure
configure.in
src/include/libpq/pqformat.h
src/include/pg_config.h.in
src/include/pg_config.h.win32