1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/math/scilab/files/patch-ad
Steve Price dca1739cb8 Update to version 2.4.1.
PR:		14877
Submitted by:	Pedro F. Giffuni <pfgiffun@bachue.usc.unal.edu.co>
1999-11-27 01:38:31 +00:00

45 lines
1.3 KiB
Plaintext

--- ./routines/sparse/spConfig.h.orig Sat Jul 18 22:31:40 1998
+++ ./routines/sparse/spConfig.h Sat Aug 8 13:15:56 1998
@@ -430,5 +430,5 @@
/* VAX machine constants */
-#ifdef vax
+#if (defined(vax) && !defined(netbsd))
# define MACHINE_RESOLUTION 6.93889e-18
# define LARGEST_REAL 1.70141e+38
@@ -439,5 +439,5 @@
/* MIPS machine constants */
-#ifdef mips
+#if (defined(mips) && !defined(netbsd))
# define MACHINE_RESOLUTION 6.93889e-18
# define LARGEST_REAL 1.70141e+38
@@ -469,5 +469,5 @@
/* Sun machine constants */
-#ifdef sun
+#if (defined(sun) && !defined(netbsd))
/* These values are rumored to be the correct values. */
# define MACHINE_RESOLUTION 8.9e-15
@@ -478,5 +478,5 @@
#endif
/* DEC alpha machine constant*/
-#ifdef __alpha
+#if (defined(__alpha) && !defined(netbsd))
# include <limits.h>
# include <float.h>
@@ -488,4 +488,13 @@
#endif
#ifdef linux
+# include <limits.h>
+# include <float.h>
+# define MACHINE_RESOLUTION DBL_EPSILON
+# define LARGEST_REAL DBL_MAX
+# define SMALLEST_REAL DBL_MIN
+# define LARGEST_SHORT_INTEGER SHRT_MAX
+# define LARGEST_LONG_INTEGER LONG_MAX
+#endif
+#if defined(netbsd) || defined(freebsd)
# include <limits.h>
# include <float.h>