Alternative for isinf (fix for bug 12008) (version 2)

Francois Gouget fgouget at
Mon Apr 21 12:03:28 CDT 2008

+#if !defined(HAVE_ISINF) && defined(HAVE_IEEEFP_H)
+#include <ieeefp.h>
+#define isinf(x) (!(finite(x) || isnand(x)))

The problem with macros is that something like isinf(*x++) won't do what 
you intend. That's why even for such a simple case a function would be 
better imho.

Francois Gouget <fgouget at>    
                         Stolen from an Internet user:
              "f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng !"

More information about the wine-devel mailing list