Ivan Ngeow: Fix build on FreeBSD

FreeBSD 8.0-RELEASE, only a very small patch needed
to be applied to simgear/simgear/compiler.h, to add

so that __FreeBSD_version is defined.
This commit is contained in:
Torsten Dreyer
2010-09-23 10:27:06 +02:00
parent 061eb686c6
commit 0b953462f7

View File

@@ -154,6 +154,7 @@ inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }
#endif
#if defined (__FreeBSD__)
#include <sys/param.h>
# if __FreeBSD_version < 500000
extern "C" {
inline int isnan(double r) { return !(r <= 0 || r >= 0); }