[cairo-commit] src/cairo-gstate.c src/cairoint.h src/cairo-matrix.c src/cairo-scaled-font.c
Bryce Harrington
bryce at kemper.freedesktop.org
Thu Oct 12 02:14:15 UTC 2017
src/cairo-gstate.c | 6 ------
src/cairo-matrix.c | 6 ------
src/cairo-scaled-font.c | 6 ------
src/cairoint.h | 6 ++++++
4 files changed, 6 insertions(+), 18 deletions(-)
New commits:
commit d5b634da61597aa8e80ba7d5bc39f092e5888515
Author: Bryce Harrington <bryce at osg.samsung.com>
Date: Wed Oct 11 19:13:46 2017 -0700
Factor out the ISFINITE() macro
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c
index 95a4ccb5..40cc4a6f 100644
--- a/src/cairo-gstate.c
+++ b/src/cairo-gstate.c
@@ -45,12 +45,6 @@
#include "cairo-pattern-private.h"
#include "cairo-traps-private.h"
-#if _XOPEN_SOURCE >= 600 || defined (_ISOC99_SOURCE)
-#define ISFINITE(x) isfinite (x)
-#else
-#define ISFINITE(x) ((x) * (x) >= 0.) /* check for NaNs */
-#endif
-
static cairo_status_t
_cairo_gstate_init_copy (cairo_gstate_t *gstate, cairo_gstate_t *other);
diff --git a/src/cairo-matrix.c b/src/cairo-matrix.c
index ae498f51..f3cf684c 100644
--- a/src/cairo-matrix.c
+++ b/src/cairo-matrix.c
@@ -40,12 +40,6 @@
#define PIXMAN_MAX_INT ((pixman_fixed_1 >> 1) - pixman_fixed_e) /* need to ensure deltas also fit */
-#if _XOPEN_SOURCE >= 600 || defined (_ISOC99_SOURCE)
-#define ISFINITE(x) isfinite (x)
-#else
-#define ISFINITE(x) ((x) * (x) >= 0.) /* check for NaNs */
-#endif
-
/**
* SECTION:cairo-matrix
* @Title: cairo_matrix_t
diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c
index b8804903..705e55bd 100644
--- a/src/cairo-scaled-font.c
+++ b/src/cairo-scaled-font.c
@@ -46,12 +46,6 @@
#include "cairo-scaled-font-private.h"
#include "cairo-surface-backend-private.h"
-#if _XOPEN_SOURCE >= 600 || defined (_ISOC99_SOURCE)
-#define ISFINITE(x) isfinite (x)
-#else
-#define ISFINITE(x) ((x) * (x) >= 0.) /* check for NaNs */
-#endif
-
/**
* SECTION:cairo-scaled-font
* @Title: cairo_scaled_font_t
diff --git a/src/cairoint.h b/src/cairoint.h
index 8573ae61..6f8303c3 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -107,6 +107,12 @@ _cairo_win32_tmpfile (void);
#undef MAX
#define MAX(a, b) ((a) > (b) ? (a) : (b))
+#if _XOPEN_SOURCE >= 600 || defined (_ISOC99_SOURCE)
+#define ISFINITE(x) isfinite (x)
+#else
+#define ISFINITE(x) ((x) * (x) >= 0.) /* check for NaNs */
+#endif
+
#ifndef FALSE
#define FALSE 0
#endif
More information about the cairo-commit
mailing list