]> git.mxchange.org Git - simgear.git/blobdiff - simgear/compiler.h
Fix line endings
[simgear.git] / simgear / compiler.h
index e29a20e37b38724a556283e6188b44a316b97c3b..6a9ec5d84587f6ada8228eabfb6b6db83cf1e5ba 100644 (file)
@@ -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 <sys/param.h>
 #  if __FreeBSD_version < 500000
      extern "C" {
        inline int isnan(double r) { return !(r <= 0 || r >= 0); }