From 7da7ad94576fa050bb3335205d8641ee1e047915 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 16 Dec 2009 18:13:55 +0100 Subject: [PATCH] Really fix compiler warnings. Reported by Sean. * src/truetype/ttgxvar.c (GX_PT_POINTS_ARE_WORDS, GX_PT_POINT_RUN_COUNT_MASK): Convert enum values to macros. --- ChangeLog | 8 ++++++++ src/truetype/ttgxvar.c | 7 ++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index dad5c2fd..b29306fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-12-16 Werner Lemberg + + Really fix compiler warnings. + Reported by Sean. + + * src/truetype/ttgxvar.c (GX_PT_POINTS_ARE_WORDS, + GX_PT_POINT_RUN_COUNT_MASK): Convert enum values to macros. + 2009-12-16 suzuki toshiya Improve configure.raw to copy some options from CFLAGS to LDFLAGS. diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c index cea00ccc..ef25aafb 100644 --- a/src/truetype/ttgxvar.c +++ b/src/truetype/ttgxvar.c @@ -94,11 +94,8 @@ #define ALL_POINTS (FT_UShort*)( -1 ) - enum - { - GX_PT_POINTS_ARE_WORDS = 0x80, - GX_PT_POINT_RUN_COUNT_MASK = 0x7F - }; +#define GX_PT_POINTS_ARE_WORDS 0x80 +#define GX_PT_POINT_RUN_COUNT_MASK 0x7F /*************************************************************************/