summaryrefslogtreecommitdiff
path: root/test/user-font-rescale.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-09-16 02:40:33 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-09-16 02:52:30 +0100
commitbe9df58b5d6415c516f3fe397c985230d7cc5bea (patch)
tree648bf9bb7644700cc4e49e1d4fc5ffd9da78852d /test/user-font-rescale.c
parentb4b65a7890c5b8d95f5bbc39d0f35a3d54088036 (diff)
[test/user-font-rescale] Fixup use of NAN
Kill the use of the C99 feature, and replace with strtod("NaN").
Diffstat (limited to 'test/user-font-rescale.c')
-rw-r--r--test/user-font-rescale.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/user-font-rescale.c b/test/user-font-rescale.c
index a65d7e5a..048e576f 100644
--- a/test/user-font-rescale.c
+++ b/test/user-font-rescale.c
@@ -28,7 +28,6 @@
#include <stdlib.h>
#include <stdio.h>
-#define __USE_ISOC99
#include <math.h>
#include "cairo-test.h"
@@ -206,8 +205,8 @@ create_rescaled_font (cairo_font_face_t *substitute_font, int glyph_start, int g
for (i=0; i<r->glyph_count; i++) {
r->desired_width[i] = desired_width[i];
- /* use NAN to specify unset */
- r->rescale_factor[i] = NAN;
+ /* use NaN to specify unset */
+ r->rescale_factor[i] = strtod ("NaN", NULL);
}
cairo_font_options_destroy (options);