]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(C Compiler): AC_C_PROTOTYPES now defines __PROTOTYPES too.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Nov 2001 18:48:02 +0000 (18:48 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Nov 2001 18:48:02 +0000 (18:48 +0000)
doc/autoconf.texi

index 6f5e0faccc49bb0e1e26d00577468a48e00a3bcf..a60b3c86a2d980e7b3173cc9f4ba0254457ab930 100644 (file)
@@ -4784,9 +4784,11 @@ found in macros such as this:
 @defmac AC_C_PROTOTYPES
 @acindex C_PROTOTYPES
 @cvindex PROTOTYPES
+@cvindex __PROTOTYPES
 @cvindex PARAMS
 Check to see if function prototypes are understood by the compiler.  If
-so, define @samp{PROTOTYPES}.  In the case the compiler does not handle
+so, define @code{PROTOTYPES} and @code{__PROTOTYPES}.
+In the case the compiler does not handle
 prototypes, you should use @code{ansi2knr}, which comes with the
 Automake distribution, to unprotoize function definitions.  For
 function prototypes, you should first define @code{PARAMS}:
@@ -4809,6 +4811,9 @@ size_t my_strlen PARAMS ((const char *));
 @end example
 @end defmac
 
+This macro also defines @code{__PROTOTYPES}; this is for the benefit of
+header files that cannot use macros that infringe on user name space.
+
 @defmac AC_PROG_GCC_TRADITIONAL
 @acindex PROG_GCC_TRADITIONAL
 @ovindex CC