summaryrefslogtreecommitdiff
path: root/test/invalid-matrix.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-09-02 21:50:08 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-09-02 21:54:09 -0400
commita7951081f153934cbf93215c5e255b99ec3e1157 (patch)
tree48aaed15a91447f6b27cfb80031f717d4556aafc /test/invalid-matrix.c
parentb4cee2bd88f36b2eddacfe91726b698ae61c819b (diff)
downloadcairo-a7951081f153934cbf93215c5e255b99ec3e1157.tar.gz
Move _GNU_SOURCE declarations to where it's used
Such that we don't rely on more GNU extensions accidentally.
Diffstat (limited to 'test/invalid-matrix.c')
-rw-r--r--test/invalid-matrix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/invalid-matrix.c b/test/invalid-matrix.c
index 8db3df13b..be1133699 100644
--- a/test/invalid-matrix.c
+++ b/test/invalid-matrix.c
@@ -24,9 +24,12 @@
* Author: Carl Worth <cworth@cworth.org>
*/
+#define _ISOC99_SOURCE /* for INFINITY */
+#define _GNU_SOURCE 1 /* for fedisableeexcept() et al */
+
#include "cairo-test.h"
-#if _XOPEN_SOURCE >= 600 || defined (_ISOC99_SOURCE)
+#ifdef INFINITY
#define HAVE_INFINITY 1
#endif