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

Jeff Muizelaar jrmuizel at kemper.freedesktop.org
Mon Feb 9 12:34:34 PST 2009


 test/cairo-test.h     |    3 ---
 test/invalid-matrix.c |    4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 3d2fcec948b93f75ba49b898633a84f60d419779
Author: Jeff Muizelaar <jmuizelaar at mozilla.com>
Date:   Mon Feb 9 15:12:41 2009 -0500

    [test] Define INFINITY on MSVC
    
    1./0. produces a compiler error on MSVC so we'll use HUGEVAL instead.

diff --git a/test/cairo-test.h b/test/cairo-test.h
index 8e068f0..a9dbf19 100644
--- a/test/cairo-test.h
+++ b/test/cairo-test.h
@@ -60,9 +60,6 @@ typedef unsigned __int64 uint64_t;
 
 #include <math.h>
 
-/* remove this if you don't have IEEE754 floating point */
-#define HAVE_IEEE754
-
 typedef enum cairo_test_status {
     CAIRO_TEST_SUCCESS = 0,
     CAIRO_TEST_NO_MEMORY,
diff --git a/test/invalid-matrix.c b/test/invalid-matrix.c
index 86ed0be..4ac109e 100644
--- a/test/invalid-matrix.c
+++ b/test/invalid-matrix.c
@@ -29,8 +29,8 @@
 
 #include "cairo-test.h"
 
-#if defined(HAVE_IEEE754) && !defined(INFINITY)
-#define INFINITY (1./0.)
+#if !defined(INFINITY) && defined(_MSC_VER)
+#define INFINITY HUGE_VAL
 #endif
 
 #if HAVE_FEDISABLEEXCEPT


More information about the cairo-commit mailing list