summaryrefslogtreecommitdiff
path: root/test/invalid-matrix.c
diff options
context:
space:
mode:
authorJeff Muizelaar <jmuizelaar@mozilla.com>2009-02-09 15:12:41 -0500
committerJeff Muizelaar <jmuizelaar@mozilla.com>2009-02-09 15:12:41 -0500
commit3d2fcec948b93f75ba49b898633a84f60d419779 (patch)
tree17dedcaa9b69ea83efd24e72c5b2c861484e4be5 /test/invalid-matrix.c
parentc22ca79863a54b4293e607c8e4d515868c216842 (diff)
[test] Define INFINITY on MSVC
1./0. produces a compiler error on MSVC so we'll use HUGEVAL instead.
Diffstat (limited to 'test/invalid-matrix.c')
-rw-r--r--test/invalid-matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/invalid-matrix.c b/test/invalid-matrix.c
index 86ed0be5..4ac109e5 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