From bbc43ca6ae0bec4f64e69c9cd4c967005d6470eb Mon Sep 17 00:00:00 2001 From: Mitchell Blank Jr Date: Mon, 21 Dec 2020 12:05:19 +0000 Subject: [PATCH] Fix configure failures with Xcode12 Changes are needed becuase Xcode12 includes a default of -Werror,-Wimplicit-function-declaration which means that even something like calling "exit(0);" is a compile failure if you haven't done a "#include " first (as C99 requires, but most other compilers will just warn about) I don't know if the "long long reliability test 2" test which tries to provoke a crash on a particular gcc 3.3 build still does what it was originally intended to do with my change. Of course, I doubt anyone has tried to use that compiler in years. Fixes #290 Upstream: https://github.com/wbhart/mpir/commit/bbc43ca6ae0bec4f64e69c9cd4c967005d6470eb Signed-off-by: Fabrice Fontaine --- acinclude.m4 | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 91c35bc23..620a629ef 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -589,9 +589,9 @@ extern #endif __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) {t1 c,x,r;int i;if(v0){c=1;for(i=1;iconftest.c <conftest.c < int main () { - exit(0); + return 0; } double d; double