]> granicus.if.org Git - php/commitdiff
Remove HAVE_STDIO_H
authorPeter Kokot <peterkokot@gmail.com>
Mon, 17 Sep 2018 00:00:51 +0000 (02:00 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Mon, 17 Sep 2018 00:00:51 +0000 (02:00 +0200)
The `<stdio.h>` header file is part of the standard C89 headers [1]
and on current systems can be included unconditionally.

Since PHP requires at least C89 or greater, the `HAVE_STDIO_H` symbol
defined by Autoconf [2] can be ommitted and simplifed.

Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4

ext/mbstring/libmbfl/config.h.w32
sapi/fpm/config.m4

index 6f3e726bc61998d229178b2d586667a938e023b6..d32cafd2d059a8134dd4594f56c501f9c949e8a0 100644 (file)
@@ -1,4 +1,3 @@
-#define HAVE_STDIO_H 1
 #define HAVE_MEMORY_H 1
 /* #undef HAVE_STRINGS_H */
 #define HAVE_STRING_H 1
index 967bc05c2efa75fd265453875146519e89f58b39..77d10ae5626ba80269390cf00560ff203438d2a3 100644 (file)
@@ -11,7 +11,7 @@ AC_DEFUN([AC_FPM_STDLIBS],
   AC_SEARCH_LIBS(socket, socket)
   AC_SEARCH_LIBS(inet_addr, nsl)
 
-  AC_CHECK_HEADERS([fcntl.h stdio.h unistd.h sys/uio.h])
+  AC_CHECK_HEADERS([fcntl.h unistd.h sys/uio.h])
   AC_CHECK_HEADERS([sys/select.h sys/socket.h sys/time.h])
   AC_CHECK_HEADERS([arpa/inet.h netinet/in.h])
   AC_CHECK_HEADERS([sysexits.h])