diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2006-03-02 06:31:29 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2006-03-02 06:31:29 +0000 |
commit | 7542dbb5b564326ff196b9100fcfd547230060eb (patch) | |
tree | 616d9cc4d05fdea8b4bc4649da8630db35e55794 /deskutils/lightning/files | |
parent | fb1a687e1d8635ab3079f149dd05b5bfd449019a (diff) | |
download | ports-7542dbb5b564326ff196b9100fcfd547230060eb.tar.gz ports-7542dbb5b564326ff196b9100fcfd547230060eb.zip |
Notes
Diffstat (limited to 'deskutils/lightning/files')
-rw-r--r-- | deskutils/lightning/files/patch-extensions_transformiix_source_base_Double.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/deskutils/lightning/files/patch-extensions_transformiix_source_base_Double.cpp b/deskutils/lightning/files/patch-extensions_transformiix_source_base_Double.cpp new file mode 100644 index 000000000000..38ce7ec12167 --- /dev/null +++ b/deskutils/lightning/files/patch-extensions_transformiix_source_base_Double.cpp @@ -0,0 +1,23 @@ +--- extensions/transformiix/source/base/Double.cpp.orig Mon Feb 6 15:40:52 2006 ++++ extensions/transformiix/source/base/Double.cpp Mon Feb 6 15:51:01 2006 +@@ -52,11 +52,16 @@ + //A trick to handle IEEE floating point exceptions on FreeBSD - E.D. + #ifdef __FreeBSD__ + #include <ieeefp.h> +-#ifdef __alpha__ +-fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP; +-#else +-fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP|FP_X_DNML; ++#if !defined(FP_X_DNML) ++#define FP_X_DNML 0 + #endif ++#if !defined(FP_X_STK) ++#define FP_X_STK 0 ++#endif ++#if !defined(FP_X_IOV) ++#define FP_X_IOV 0 ++#endif ++fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP|FP_X_DNML|FP_X_STK|FP_X_IOV; + fp_except_t oldmask = fpsetmask(~allmask); + #endif + |