Revision 179a2c19 fpu/softfloat-native.c

b/fpu/softfloat-native.c
6 6
void set_float_rounding_mode(int val STATUS_PARAM)
7 7
{
8 8
    STATUS(float_rounding_mode) = val;
9
#if defined(_BSD) && !defined(__APPLE__) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10)
9
#if defined(HOST_BSD) && !defined(__APPLE__) ||         \
10
    (defined(HOST_SOLARIS) && HOST_SOLARIS < 10)
10 11
    fpsetround(val);
11 12
#elif defined(__arm__)
12 13
    /* nothing to do */
......
22 23
}
23 24
#endif
24 25

  
25
#if defined(_BSD) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10)
26
#if defined(HOST_BSD) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10)
26 27
#define lrint(d)		((int32_t)rint(d))
27 28
#define llrint(d)		((int64_t)rint(d))
28 29
#define lrintf(f)		((int32_t)rint(f))

Also available in: Unified diff