# include <AL/alc.h>
#endif
-#if defined (__APPLE__)
+#if defined (__APPLE__)
// any C++ header file undefines isinf and isnan
// so this should be included before <iostream>
inline int (isinf)(double r) { return isinf(r); }
#define isnan(x) _isnan(x)
#endif
+#if defined (__FreeBSD__)
+inline int isnan(double r) { return !(r < 0 || r > 0); }
+#endif
+
#include STL_IOSTREAM
#include <simgear/debug/logstream.hxx>