summaryrefslogtreecommitdiff
path: root/devel/mico/files/patch-include::os-math.h
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2003-07-02 13:02:29 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2003-07-02 13:02:29 +0000
commit3c251ab3e71f5c3493a62554402aef0c82f0ff4e (patch)
tree15a443eaaae05e146a25f58f737387d65ae94019 /devel/mico/files/patch-include::os-math.h
parentfix news/pyne: (diff)
update devel/mico: 2.3.10 --> 2.3.10_1
- install HTML documentation - add build options: WITH_X11, WITH_QT, TITH_GTK, WITH_TCL - fix PLIST and make it flexible and depended on build options - add WITH_GCC32 option to build with lang/gcc32 on -STABLE - add patches and rename old - many style fixes - change COMMENT to correspond to Mico current state - decrease pkg-descr to 24 lines PR: 53988 Submitted by: Sergey Matveychuk <sem@ciam.ru> (maintainer)
Notes
Notes: svn path=/head/; revision=84045
Diffstat (limited to 'devel/mico/files/patch-include::os-math.h')
-rw-r--r--devel/mico/files/patch-include::os-math.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/devel/mico/files/patch-include::os-math.h b/devel/mico/files/patch-include::os-math.h
new file mode 100644
index 000000000000..26c13c173b30
--- /dev/null
+++ b/devel/mico/files/patch-include::os-math.h
@@ -0,0 +1,24 @@
+--- os-math.h.orig Mon May 26 14:55:46 2003
++++ include/mico/os-math.h Tue Jun 24 02:20:33 2003
+@@ -275,6 +275,21 @@
+ };
+
+ #else // neither _WIN32 nor _POCKET_PC
++#include <sys/param.h>
++#if (defined(__FreeBSD__) && __FreeBSD_version >= 500035)
++#ifndef fpclassify
++#define fpclassify(x) \
++ ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \
++ : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \
++ : __fpclassifyl(x))
++#endif
++#ifndef isinf
++#define isinf(x) (fpclassify(x) == FP_INFINITE)
++#endif
++#ifndef isnan
++#define isnan(x) (fpclassify(x) == FP_NAN)
++#endif
++#endif
+
+ #include <unistd.h>
+ #include <signal.h>