autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] stop telling users to use STDC_HEADERS in the documentation


From: Adrian Bunk
Subject: [PATCH] stop telling users to use STDC_HEADERS in the documentation
Date: Tue, 25 Sep 2012 15:25:08 +0300

* doc/autoconf.texi: stop recommending "#if defined STDC_HEADERS"
---
 doc/autoconf.texi |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 0b07728..617166b 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -4853,9 +4853,7 @@ like the following, to declare it properly.
 
 @example
 @group
-#if defined STDC_HEADERS || defined HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 #include <stddef.h>
 #ifdef HAVE_ALLOCA_H
 # include <alloca.h>
@@ -5748,9 +5746,7 @@ beforehand.  One should run:
 AC_CHECK_HEADERS([sys/socket.h])
 AC_CHECK_HEADERS([net/if.h], [], [],
 [#include <stdio.h>
-#if defined STDC_HEADERS || defined HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 #include <stddef.h>
 #ifdef HAVE_SYS_SOCKET_H
 # include <sys/socket.h>
@@ -5767,9 +5763,7 @@ On Darwin, this file requires that @file{stdio.h} and
 AC_CHECK_HEADERS([sys/socket.h])
 AC_CHECK_HEADERS([netinet/if_ether.h], [], [],
 [#include <stdio.h>
-#if defined STDC_HEADERS || defined HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 #include <stddef.h>
 #ifdef HAVE_SYS_SOCKET_H
 # include <sys/socket.h>
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]