diff --git a/test/half.cpp b/test/half.cpp index 17b2c182..065102a7 100644 --- a/test/half.cpp +++ b/test/half.cpp @@ -17,8 +17,16 @@ #include #include +#include + #include "core.h" +/* This will not work with aggressive optimisation, but a reasonable + * assumption is that such environments do have a proper isnan(). */ +#if !defined isnan +# define isnan(x) (!((x) == (x))) +#endif + namespace lol {