remove restrict keyword from public headers
That keyword is not usable in C++ code. Which those headers can be used from.
In the end we don't need to use AC_C_RESTRICT
since we require a C11 compiler for C code. For that we need to remove the restrict
usage in C++ code.
Replaces !3132 (closed)
Fixes #27741
Edited by Steve Lhomme