Lines 223-228
Link Here
|
223 |
/* This code checks the IEEE status flags in a platform-dependent way */ |
223 |
/* This code checks the IEEE status flags in a platform-dependent way */ |
224 |
/* Adapted from Numarray */ |
224 |
/* Adapted from Numarray */ |
225 |
|
225 |
|
|
|
226 |
#if (defined(__unix__) || defined(unix)) && !defined(USG) |
227 |
#include <sys/param.h> |
228 |
#endif |
229 |
|
226 |
/* OSF/Alpha (Tru64) ---------------------------------------------*/ |
230 |
/* OSF/Alpha (Tru64) ---------------------------------------------*/ |
227 |
#if defined(__osf__) && defined(__alpha) |
231 |
#if defined(__osf__) && defined(__alpha) |
228 |
|
232 |
|
Lines 267-273
Link Here
|
267 |
/* Solaris --------------------------------------------------------*/ |
271 |
/* Solaris --------------------------------------------------------*/ |
268 |
/* --------ignoring SunOS ieee_flags approach, someone else can |
272 |
/* --------ignoring SunOS ieee_flags approach, someone else can |
269 |
** deal with that! */ |
273 |
** deal with that! */ |
270 |
#elif defined(sun) || defined(__BSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) |
274 |
#elif defined(sun) || defined(__BSD__) || defined(__OpenBSD__) || (defined(__FreeBSD__) && (__FreeBSD_version < 502114)) || defined(__NetBSD__) |
271 |
#include <ieeefp.h> |
275 |
#include <ieeefp.h> |
272 |
|
276 |
|
273 |
#define UFUNC_CHECK_STATUS(ret) { \ |
277 |
#define UFUNC_CHECK_STATUS(ret) { \ |
Lines 281-289
Link Here
|
281 |
(void) fpsetsticky(0); \ |
285 |
(void) fpsetsticky(0); \ |
282 |
} |
286 |
} |
283 |
|
287 |
|
284 |
#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) |
288 |
#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114)) |
285 |
|
289 |
|
286 |
#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) |
290 |
#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) || defined(__FreeBSD__) |
287 |
#include <fenv.h> |
291 |
#include <fenv.h> |
288 |
#elif defined(__CYGWIN__) |
292 |
#elif defined(__CYGWIN__) |
289 |
#include "fenv/fenv.c" |
293 |
#include "fenv/fenv.c" |