freebsd-ports/science/gnudatalanguage/files/patch-src__math_fun_jmg.hpp
Thierry Thomas af1b41b6b8 GDL - GNU Data Language - is a free IDL (Interactive Data Language)
compatible incremental compiler (i.e.  runs IDL programs).

IDL is a registered trademark of Research Systems Inc.
(see: <http://www.rsinc.com/>)

Remark: slave port for Python module intentionnally not yet committed.

WWW: http://gnudatalanguage.sourceforge.net/
2005-10-31 18:48:23 +00:00

19 lines
404 B
C++

--- src/math_fun_jmg.hpp.orig Mon Oct 17 10:22:04 2005
+++ src/math_fun_jmg.hpp Sat Oct 29 21:48:25 2005
@@ -18,7 +18,15 @@
#ifndef MATH_FUN_HPP_
#define MATH_FUN_HPP_
-#include <fenv.h>
+#ifdef __cplusplus
+ extern "C" {
+# include <fenv.h>
+# if defined(__FreeBSD__)
+# pragma STDC FENV_ACCESS ON
+# endif
+}
+#endif
+
#include "datatypes.hpp"
#include "envt.hpp"
#include "math_utl.hpp"