diff --git a/math/mpsolve/files/patch-include_mps_types.h b/math/mpsolve/files/patch-include_mps_types.h new file mode 100644 index 000000000000..9da025455405 --- /dev/null +++ b/math/mpsolve/files/patch-include_mps_types.h @@ -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 ++#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