[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] ftraster.c compile error on VC
From: |
Allan Yang, Jian Hua - SH |
Subject: |
[ft-devel] ftraster.c compile error on VC |
Date: |
Fri, 11 Jan 2008 18:48:55 +0800 |
When I undefine FT_RASTER_OPTION_ANTI_ALIASING, I get compile error on
VC (MinGW is correct):
src\raster\ftraster.c(3178) : error C2143: syntax error : missing ';'
before 'type'
src\raster\ftraster.c(3182) : error C2065: 'n' : undeclared identifier
src\raster\ftraster.c(3182) : error C2065: 'n' : undeclared identifier
src\raster\ftraster.c(3182) : error C2065: 'n' : undeclared identifier
src\raster\ftraster.c(3183) : error C2065: 'n' : undeclared identifier
src\raster\ftraster.c(3183) : error C2065: 'n' : undeclared identifier
To solve this error, modify the function ft_black_init() to:
-- ft_black_init() start --
static void
ft_black_init( PRaster raster )
{
#ifdef FT_RASTER_OPTION_ANTI_ALIASING
FT_UInt n;
/* set default 5-levels gray palette */
for ( n = 0; n < 5; n++ )
raster->grays[n] = n * 255 / 4;
raster->gray_width = RASTER_GRAY_LINES / 2;
#else
FT_UNUSED( raster );
#endif
}
-- ft_black_init() end --
Allan
- [ft-devel] ftraster.c compile error on VC,
Allan Yang, Jian Hua - SH <=