Skip to content

Commit 77118fc

Browse files
committed
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
1 parent c92425d commit 77118fc

File tree

28 files changed

+0
-34
lines changed

28 files changed

+0
-34
lines changed

configure.ac

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,6 @@ netinet/in.h \
434434
alloca.h \
435435
arpa/inet.h \
436436
arpa/nameser.h \
437-
assert.h \
438437
crypt.h \
439438
dns.h \
440439
fcntl.h \
@@ -477,7 +476,6 @@ utime.h \
477476
sys/utsname.h \
478477
sys/ipc.h \
479478
dlfcn.h \
480-
assert.h \
481479
tmmintrin.h \
482480
nmmintrin.h \
483481
immintrin.h

ext/bcmath/libbcmath/src/add.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <config.h>
3333
#include <stdio.h>
34-
#include <assert.h>
3534
#include <stdlib.h>
3635
#include <ctype.h>
3736
#include <stdarg.h>

ext/bcmath/libbcmath/src/compare.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <config.h>
3333
#include <stdio.h>
34-
#include <assert.h>
3534
#include <stdlib.h>
3635
#include <ctype.h>
3736
#include <stdarg.h>

ext/bcmath/libbcmath/src/debug.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <config.h>
3333
#include <stdio.h>
34-
#include <assert.h>
3534
#include <stdlib.h>
3635
#include <ctype.h>
3736
#include <stdarg.h>

ext/bcmath/libbcmath/src/div.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <config.h>
3333
#include <stdio.h>
34-
#include <assert.h>
3534
#include <stdlib.h>
3635
#include <ctype.h>
3736
#include <stdarg.h>

ext/bcmath/libbcmath/src/divmod.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <config.h>
3333
#include <stdio.h>
34-
#include <assert.h>
3534
#include <stdlib.h>
3635
#include <ctype.h>
3736
#include <stdarg.h>

ext/bcmath/libbcmath/src/doaddsub.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <config.h>
3333
#include <stdio.h>
34-
#include <assert.h>
3534
#include <stdlib.h>
3635
#include <ctype.h>
3736
#include <stdarg.h>

ext/bcmath/libbcmath/src/init.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <config.h>
3333
#include <stdio.h>
34-
#include <assert.h>
3534
#include <stdlib.h>
3635
#include <ctype.h>
3736
#include <stdarg.h>

ext/bcmath/libbcmath/src/int2num.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <config.h>
3333
#include <stdio.h>
34-
#include <assert.h>
3534
#include <stdlib.h>
3635
#include <ctype.h>
3736
#include <stdarg.h>

ext/bcmath/libbcmath/src/nearzero.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <config.h>
3333
#include <stdio.h>
34-
#include <assert.h>
3534
#include <stdlib.h>
3635
#include <ctype.h>
3736
#include <stdarg.h>

0 commit comments

Comments
 (0)