Use C99 restrict via pg_restrict, rather than restrict directly.
Andres Freund <andres@anarazel.de>
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
| Path | Change | +/− |
|---|---|---|
| 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
- pgsql: Add configure infrastructure to detect support for C99's restric 10 messages · 2017-10-11 → 2017-10-12