diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-09-05 00:09:56 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-09-09 09:43:03 +0200 |
commit | 77118fc925b3e84be02a80d8da6bbbb47f8c37e1 (patch) | |
tree | 9a7a554467221f2f90dd1ce9eb11c0238022af88 /ext/bcmath/libbcmath/src/doaddsub.c | |
parent | c92425dbabf43fa32d7aeb45b768dc0a2f1d3370 (diff) | |
download | php-git-77118fc925b3e84be02a80d8da6bbbb47f8c37e1.tar.gz |
Remove HAVE_ASSERT_H
The `<assert.h>` header file is part of the standard C89 headers [1] and
on older systems there needed to be also a manual check if header is
present.
Since PHP requires at least C89 manual check and the `HAVE_ASSERT_H`
symbol defined by Autoconf in configure.ac can be both removed [2].
This patch also removes unused <assert.h> includes where c files don't
use the `assert()` macro.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
Diffstat (limited to 'ext/bcmath/libbcmath/src/doaddsub.c')
-rw-r--r-- | ext/bcmath/libbcmath/src/doaddsub.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/bcmath/libbcmath/src/doaddsub.c b/ext/bcmath/libbcmath/src/doaddsub.c index cef0fdbf1b..dc0ba0614b 100644 --- a/ext/bcmath/libbcmath/src/doaddsub.c +++ b/ext/bcmath/libbcmath/src/doaddsub.c @@ -31,7 +31,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <stdlib.h> #include <ctype.h> #include <stdarg.h> |