X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fcompiler.h;h=6a9ec5d84587f6ada8228eabfb6b6db83cf1e5ba;hb=d314b6a55274508d42597dff575ba2277a71fa67;hp=939d9f319c6ad18b2942f7125ebd7fc6504688e4;hpb=f918602f58dea8846046b2b349f49bdc2682c3ff;p=simgear.git diff --git a/simgear/compiler.h b/simgear/compiler.h index 939d9f31..6a9ec5d8 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -67,6 +67,10 @@ # define vsnprintf _vsnprintf # endif # 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 @@ -150,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); }