From e19f07f2951bbbd35660402cc8beb55077d41e49 Mon Sep 17 00:00:00 2001 From: Danilo Piparo Date: Thu, 3 Apr 2025 10:10:41 +0200 Subject: [PATCH] [graf] Patch libAsimage: fp.h is now part of math.h Thanks to @ktf (ALICE) for this fix. --- graf2d/asimage/README | 2 ++ graf2d/asimage/src/libAfterImage/libpng/pngpriv.h | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/graf2d/asimage/README b/graf2d/asimage/README index c67b8e0ec20f9..4b1eaf725092c 100644 --- a/graf2d/asimage/README +++ b/graf2d/asimage/README @@ -44,6 +44,8 @@ Some files have been modified compare to the official libAfterImage version: configure.in: support clang++ by removing some warnings. + libpng/pngpriv.h: fp.h was moved into math.h. This fix was originated by G. Eullisse - ALICE (April 2025) + configure: - has been modified to look at the ".dylib" file extension to find the X11 libraries. This is needed on the Mac Leopard system. diff --git a/graf2d/asimage/src/libAfterImage/libpng/pngpriv.h b/graf2d/asimage/src/libAfterImage/libpng/pngpriv.h index 7c19373f0b877..cc49c77677eba 100644 --- a/graf2d/asimage/src/libAfterImage/libpng/pngpriv.h +++ b/graf2d/asimage/src/libAfterImage/libpng/pngpriv.h @@ -520,11 +520,7 @@ * as it seems it doesn't agree with , yet we should really use * if possible. */ -# if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__) -# include -# endif -# else -# include +# include # endif # if defined(_AMIGA) && defined(__SASC) && defined(_M68881) /* Amiga SAS/C: We must include builtin FPU functions when compiling using