vcpkg/ports/hypre/fix-lapack-vs14-math.patch

34 lines
1.1 KiB
Diff
Raw Normal View History

2017-05-16 11:00:05 +02:00
--- a/lapack/f2c.h Fri Sep 11 18:57:56 2015
+++ b/lapack/f2c.h Thu Dec 22 18:22:26 2016
@@ -190,18 +190,18 @@
typedef struct Namelist Namelist;
/* The following undefs are to prevent conflicts with external libraries */
-#undef abs
-#define abs(x) ((x) >= 0 ? (x) : -(x))
-#define dabs(x) (doublereal)abs(x)
-#ifndef min
-#define min(a,b) ((a) <= (b) ? (a) : (b))
-#define max(a,b) ((a) >= (b) ? (a) : (b))
-#endif
-#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)))
+//#undef abs
+//#define abs(x) ((x) >= 0 ? (x) : -(x))
+//#define dabs(x) (doublereal)abs(x)
+//#ifndef min
+//#define min(a,b) ((a) <= (b) ? (a) : (b))
+//#define max(a,b) ((a) >= (b) ? (a) : (b))
+//#endif
+//#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++ */