001-acinclude-m4-fix-std23.patch 689 B

12345678910111213141516171819
  1. # HG changeset patch
  2. # User Marc Glisse <[email protected]>
  3. # Date 1738186682 -3600
  4. # Wed Jan 29 22:38:02 2025 +0100
  5. # Node ID 8e7bb4ae7a18b1405ea7f9cbcda450b7d920a901
  6. # Parent e84c5c785bbe8ed8c3620194e50b65adfc2f5d83
  7. Complete function prototype in acinclude.m4 for C23 compatibility
  8. --- a/acinclude.m4
  9. +++ b/acinclude.m4
  10. @@ -609,7 +609,7 @@ GMP_PROG_CC_WORKS_PART([$1], [long long
  11. #if defined (__GNUC__) && ! defined (__cplusplus)
  12. typedef unsigned long long t1;typedef t1*t2;
  13. -void g(){}
  14. +void g(int,t1 const*,t1,t2,t1 const*,int){}
  15. void h(){}
  16. static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
  17. {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}