summaryrefslogtreecommitdiff
path: root/math/octave-forge-gsl/files/patch-gsl__sf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'math/octave-forge-gsl/files/patch-gsl__sf.cc')
-rw-r--r--math/octave-forge-gsl/files/patch-gsl__sf.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/math/octave-forge-gsl/files/patch-gsl__sf.cc b/math/octave-forge-gsl/files/patch-gsl__sf.cc
new file mode 100644
index 000000000000..4849f194f6cd
--- /dev/null
+++ b/math/octave-forge-gsl/files/patch-gsl__sf.cc
@@ -0,0 +1,26 @@
+--- gsl_sf.cc.orig 2021-02-21 21:41:43 UTC
++++ gsl_sf.cc
+@@ -26,11 +26,7 @@
+ #include <gsl/gsl_errno.h>
+ #include <gsl/gsl_version.h>
+
+-#ifdef OCTAVE_HAS_OV_ISREAL_METHOD
+ #define ISREAL(x) ((x).isreal ())
+-#else
+-#define ISREAL(x) ((x).is_real_type ())
+-#endif
+
+ void octave_gsl_errorhandler (const char * reason, const char * file,
+ int line, int gsl_errno)
+@@ -47,11 +43,7 @@ special functions of the GNU Scientific Library (GSL).
+ \n\
+ @end deftypefn\n")
+ {
+-#ifdef OCTAVE_HAS_FEVAL_IN_OCTAVE_NAMESPACE
+ octave::feval ("help", octave_value ("gsl_sf"));
+-#else
+- feval ("help", octave_value ("gsl_sf"));
+-#endif
+
+ return octave_value();
+ }