summaryrefslogtreecommitdiff
path: root/main/php_network.h
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-09-05 02:53:12 +0200
committerJoe Watkins <krakjoe@php.net>2018-09-05 11:51:19 +0200
commit6c1ff61a368a26c8f2cbf383aa8a26fc30cf59ef (patch)
tree3b0210401c55571e06ac3337a0fa2f3432820900 /main/php_network.h
parent3b1b0c589d72763940525197f4ed73b32836f483 (diff)
downloadphp-git-6c1ff61a368a26c8f2cbf383aa8a26fc30cf59ef.tar.gz
Remove HAVE_STDDEF_H
The `<stddef.h>` header file is part of the standard C89 headers [1] and on current systems there is no need for a manual check if header is present. Since PHP requires at least C89 the `HAVE_STDDEF_H` symbol isn't defined by Autoconf anywhere else anymore [2] and accross the PHP source code the header is included unconditionally already. This patch syncs this also for the bundled libmbfl which is maintaned as a fork in php-src. 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
Diffstat (limited to 'main/php_network.h')
-rw-r--r--main/php_network.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/main/php_network.h b/main/php_network.h
index 4d6b18f43a..296be2b17f 100644
--- a/main/php_network.h
+++ b/main/php_network.h
@@ -89,9 +89,7 @@ END_EXTERN_C()
#include <sys/time.h>
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#ifdef PHP_WIN32
typedef SOCKET php_socket_t;