From: Torsten Dreyer Date: Thu, 23 Sep 2010 08:27:06 +0000 (+0200) Subject: Ivan Ngeow: Fix build on FreeBSD X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b953462f738c127cee29101e624d145fddff6fc;p=simgear.git 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. --- diff --git a/simgear/compiler.h b/simgear/compiler.h index 616dd15d..6a9ec5d8 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -154,6 +154,7 @@ inline int (isnan)(double r) { return !(r <= 0 || r >= 0); } #endif #if defined (__FreeBSD__) +#include # if __FreeBSD_version < 500000 extern "C" { inline int isnan(double r) { return !(r <= 0 || r >= 0); }