ports/math/octave-forge-gsl/files/patch-gsl__sf.cc
Stephen Montgomery-Smith 6473aac25b - Update math/octave to 6.2.0.
- Bump portrevision of dependent ports.
- Add patches to dependent ports math/octave-forge-* if I can figure them out.
- Mark broken dependent ports I couldn't figure out.
2021-02-21 22:41:34 +00:00

26 lines
660 B
C++

--- 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();
}