diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-09-16 02:40:33 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-09-16 02:52:30 +0100 |
commit | be9df58b5d6415c516f3fe397c985230d7cc5bea (patch) | |
tree | 648bf9bb7644700cc4e49e1d4fc5ffd9da78852d /test/user-font-rescale.c | |
parent | b4b65a7890c5b8d95f5bbc39d0f35a3d54088036 (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.c | 5 |
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); |