[packages/libf2c] patch

arekm arekm at pld-linux.org
Sun Mar 15 01:31:02 CET 2026


commit df9ed822aa25c32feeb3b7beb9fe8f0e59a95610
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 15 01:30:56 2026 +0100

    patch

 libf2c-nomacros.patch | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
diff --git a/libf2c-nomacros.patch b/libf2c-nomacros.patch
new file mode 100644
index 0000000..5de7f38
--- /dev/null
+++ b/libf2c-nomacros.patch
@@ -0,0 +1,18 @@
+--- libf2c/f2c.h0.orig	2024-01-31 00:00:00.000000000 +0100
++++ libf2c/f2c.h0	2024-01-31 00:00:00.000000000 +0100
+@@ -174,15 +174,6 @@
+ 	};
+ typedef struct Namelist Namelist;
+
+-#define abs(x) ((x) >= 0 ? (x) : -(x))
+-#define dabs(x) (doublereal)abs(x)
+-#define min(a,b) ((a) <= (b) ? (a) : (b))
+-#define max(a,b) ((a) >= (b) ? (a) : (b))
+-#define dmin(a,b) (doublereal)min(a,b)
+-#define dmax(a,b) (doublereal)max(a,b)
+-#define bit_test(a,b)	((a) >> (b) & 1)
+-#define bit_clear(a,b)	((a) & ~((uinteger)1 << (b)))
+-#define bit_set(a,b)	((a) |  ((uinteger)1 << (b)))
+
+ /* procedure parameter types for -A and -C++ */
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libf2c.git/commitdiff/df9ed822aa25c32feeb3b7beb9fe8f0e59a95610



More information about the pld-cvs-commit mailing list