diff options
author | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-02-10 11:44:20 -0500 |
---|---|---|
committer | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-02-10 11:44:20 -0500 |
commit | 41e46c7754fff3a99927979925300a7588b9962f (patch) | |
tree | d683240c65ed6c44a26414f03596eb9c6ca62c7e /test/user-font.c | |
parent | fe40d3bdb0d0cb93169b935e44d14b15e014fa6d (diff) | |
download | cairo-41e46c7754fff3a99927979925300a7588b9962f.tar.gz |
[test] Don't embed preprocessor directives inside macros
MSVC can't handle this. GCC will warn with -pedantic, but I'm not
sure we want to enable that.
Diffstat (limited to 'test/user-font.c')
-rw-r--r-- | test/user-font.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/user-font.c b/test/user-font.c index 38e2b1d5b..30bc74e35 100644 --- a/test/user-font.c +++ b/test/user-font.c @@ -35,7 +35,11 @@ #define BORDER 10 #define TEXT_SIZE 64 #define WIDTH (TEXT_SIZE * 15 + 2*BORDER) -#define HEIGHT ((TEXT_SIZE + 2*BORDER)*2) +#ifndef ROTATED + #define HEIGHT ((TEXT_SIZE + 2*BORDER)*2) +#else + #define HEIGHT WIDTH +#endif #define TEXT "geez... cairo user-font" #define END_GLYPH 0 @@ -259,9 +263,5 @@ CAIRO_TEST (user_font, "Tests user font feature", "font, user-font", /* keywords */ "cairo >= 1.7.4", /* requirements */ -#ifndef ROTATED WIDTH, HEIGHT, -#else - WIDTH, WIDTH, -#endif NULL, draw) |