Martin Spott: Revised handling of missing isnan() on earlier versions of
FreeBSD.
This commit is contained in:
@@ -46,11 +46,14 @@ inline int (isnan)(double r) { return isnan(r); }
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (__FreeBSD__)
|
#if defined (__FreeBSD__)
|
||||||
inline int isnan(double r) { return !(r <= 0 || r >= 0); }
|
# if __FreeBSD_version < 500000
|
||||||
|
extern "C" {
|
||||||
|
inline int isnan(double r) { return !(r <= 0 || r >= 0); }
|
||||||
|
}
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static ssgStateSelector *layer_states[SGCloudLayer::SG_MAX_CLOUD_COVERAGES];
|
static ssgStateSelector *layer_states[SGCloudLayer::SG_MAX_CLOUD_COVERAGES];
|
||||||
static bool state_initialized = false;
|
static bool state_initialized = false;
|
||||||
static bool bump_mapping = false;
|
static bool bump_mapping = false;
|
||||||
|
|||||||
@@ -46,6 +46,15 @@ inline int (isnan)(double r) { return isnan(r); }
|
|||||||
#define isnan(x) _isnan(x)
|
#define isnan(x) _isnan(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (__FreeBSD__)
|
||||||
|
# if __FreeBSD_version < 500000
|
||||||
|
extern "C" {
|
||||||
|
inline int isnan(double r) { return !(r <= 0 || r >= 0); }
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined (__FreeBSD__)
|
#if defined (__FreeBSD__)
|
||||||
inline int isnan(double r) { return !(r <= 0 || r >= 0); }
|
inline int isnan(double r) { return !(r <= 0 || r >= 0); }
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user