X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fcompiler.h;h=6a9ec5d84587f6ada8228eabfb6b6db83cf1e5ba;hb=d314b6a55274508d42597dff575ba2277a71fa67;hp=e29a20e37b38724a556283e6188b44a316b97c3b;hpb=17bcd4e2ab4ea5b9d407e83bb2a30e62e69f170e;p=simgear.git diff --git a/simgear/compiler.h b/simgear/compiler.h index e29a20e3..6a9ec5d8 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -69,6 +69,9 @@ # define copysign _copysign # define strcasecmp stricmp +# undef min +# undef max + # pragma warning(disable: 4786) // identifier was truncated to '255' characters # pragma warning(disable: 4244) // conversion from double to float # pragma warning(disable: 4305) // @@ -151,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); }