Skip to content
Snippets Groups Projects
Commit 1f34f21b authored by Yuri Victorovich's avatar Yuri Victorovich
Browse files

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
parent 04ea2d64
No related branches found
No related tags found
No related merge requests found
- 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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment