[cairo] [cairo-commit] test/cairo-test.h test/invalid-matrix.c test/user-font-rescale.c

Jeremy Lea reg at openpave.org
Wed Feb 11 15:32:15 PST 2009


Hi,

On Wed, Feb 11, 2009 at 03:25:24PM -0800, Jeff Muizelaar wrote:
>     strtod("NaN") returns 0.0 with the MSVC runtime so we
>     need to generate NaN some other way.

Would this help?

#if defined(_MSC_VER)
#include <ymath.h>
#endif

#if defined(_MSC_VER)
#define isnan(x) 	_isnan(x)
#define isfinite(x)	_finite(x)
#if _MSC_VER > 1200
#define INFINITY	_Inf._Double
#define NAN		_Nan._Double
#else
#define INFINITY	_Inf._D
#define	NAN		_Nan._D
#endif
#endif

Regards,
  -Jeremy

-- 
FreeBSD - Because the best things in life are free...
                                           http://www.freebsd.org/


More information about the cairo mailing list