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
25 files changed:
and to 0 otherwise. */
#undef HAVE_REALLOC
-/* Define to 1 if you have the <stddef.h> header file. */
-#undef HAVE_STDDEF_H
-
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
-#define HAVE_STDDEF_H 1
#define HAVE_ASSERT_H 1
#define HAVE_MEMORY_H 1
/* #undef HAVE_STRINGS_H */
#include <strings.h>
#endif
-#ifdef HAVE_STDDEF_H
-#include <stddef.h>
-#endif
-
#include "mbfilter.h"
#include "mbfl_filter_output.h"
#include "mbfilter_8bit.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "mbfilter_pass.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include <strings.h>
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfl_allocators.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfl_encoding.h"
#include "mbfl_allocators.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#ifdef HAVE_STRING_H
#include <string.h>
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfl_ident.h"
#include "mbfl_allocators.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
-
-#ifdef HAVE_STDDEF_H
-#include <stddef.h>
-#endif
#ifdef HAVE_STRING_H
#include <string.h>
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include <string.h>
#include "mbfl_allocators.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfl_allocators.h"
#include "mbfl_string.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "nls_de.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "nls_en.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "nls_hy.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "nls_ja.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "nls_kr.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "nls_neutral.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "nls_ru.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "nls_tr.h"
#include "config.h"
#endif
-
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
-
#include "mbfilter.h"
#include "nls_ua.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "nls_uni.h"
#include "config.h"
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include "mbfilter.h"
#include "nls_zh.h"
#include <sys/time.h>
#endif
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#ifdef PHP_WIN32
typedef SOCKET php_socket_t;