]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
doc: improve AC_C_RESTRICT doc
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 May 2026 20:54:24 +0000 (13:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 May 2026 20:54:51 +0000 (13:54 -0700)
doc/autoconf.texi
lib/autoconf/c.m4

index 34d7d27694fab6f67fe96b4902207820913255f9..70fcf24384c4c70a461d624f354df72d30f89db2 100644 (file)
@@ -7599,7 +7599,8 @@ If the C compiler supports C11-style generic selection using the
 @caindex c_restrict
 If the C compiler recognizes a variant spelling for the @code{restrict}
 keyword (@code{__restrict}, @code{__restrict__}, or @code{_Restrict}),
-then define @code{restrict} to that; this is more likely to do the right
+then define @code{restrict} to that for both C++ and pre-C99 C;
+this is more likely to do the right
 thing with compilers that support language variants where plain
 @code{restrict} is not a keyword.  Otherwise, if the C compiler
 recognizes the @code{restrict} keyword, don't do anything.
index 218c78a7d7ec0ece1dc4e1f48c974679e7d60116..f386d02450524877595c7e94cf1ff241ed0827c6 100644 (file)
@@ -2206,7 +2206,7 @@ AC_DEFUN([AC_C_RESTRICT],
  AH_VERBATIM([restrict],
 [/* Define to the equivalent of the C99 'restrict' keyword, or to
    nothing if this is not supported.  Do not define if restrict is
-   supported only directly.  */
+   supported directly.  */
 #if ! (defined __STDC_VERSION__ && 199901L <= __STDC_VERSION__)
 #undef restrict
 #endif