mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
math/mpsolve: Fix build
Add patch that removes redefined isnan that is added in the project for systems w/out isnan (I guess). Reported by: fallout
This commit is contained in:
parent
04ea2d6456
commit
1f34f21bb4
1 changed files with 20 additions and 0 deletions
20
math/mpsolve/files/patch-include_mps_types.h
Normal file
20
math/mpsolve/files/patch-include_mps_types.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
- workaround for https://github.com/robol/MPSolve/issues/38
|
||||
|
||||
--- include/mps/types.h.orig 2023-11-09 17:34:55 UTC
|
||||
+++ include/mps/types.h
|
||||
@@ -22,6 +22,7 @@ typedef int mps_debug_level;
|
||||
|
||||
/* Handle systems where isnan and isinf are not available */
|
||||
#include <math.h>
|
||||
+#if 0
|
||||
#ifndef isnan
|
||||
# define isnan(x) \
|
||||
(sizeof(x) == sizeof(long double) ? isnan_ld (x) \
|
||||
@@ -58,6 +59,7 @@ static inline int isinf_ld (long double x)
|
||||
{
|
||||
return !isnan (x) && isnan (x - x);
|
||||
}
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
#include <mps/mt-types.h>
|
Loading…
Add table
Reference in a new issue