[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `smoothing_enabled' undeclared
From: |
Herbert Euler |
Subject: |
Re: `smoothing_enabled' undeclared |
Date: |
Sat, 24 Jun 2006 10:16:02 +0800 |
From: Eli Zaretskii <address@hidden>
Reply-To: Eli Zaretskii <address@hidden>
To: "Herbert Euler" <address@hidden>
CC: address@hidden
Subject: Re: `smoothing_enabled' undeclared
Date: Fri, 23 Jun 2006 13:10:54 +0300
> From: "Herbert Euler" <address@hidden>
> Bcc:
> Date: Fri, 23 Jun 2006 11:20:50 +0800
>
> It seems HEAD sync was incorrect again. When compiling
> src/w32term.c on Windows:
>
> gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0500 -D_X86_=1 -c
> -mno-cygwin -m
> cpu=i686 -O2 -Di386 -D_CRTAPI1=_cdecl -O2 -Demacs=1 -DWINDOWSNT
-DDOS_NT
> -DHAV
> E_CONFIG_H -I../nt/inc -D_UCHAR_T -DHAVE_NTGUI=1 -DUSE_CRT_DLL=1
> -DPURESIZE=5000
> 000 -o oo-spd/i386/w32term.o w32term.c
> w32term.c: In function `w32_initialize':
> w32term.c:6551: `smoothing_enabled' undeclared (first use in this
function)
> w32term.c:6551: (Each undeclared identifier is reported only once
> w32term.c:6551: for each function it appears in.)
> w32term.c:6553: `smoothing_type' undeclared (first use in this function)
> make[2]: *** [oo-spd/i386/w32term.o] Error 1
I cannot reproduce this: w32term.c compiles for me just fine. And the
error message looks very strange anyway, since w32term.c has only 6474
lines (and was last modified on 5th June, so if there were a problem,
lots of people would have complained by now).
Can you see what is going on around the lines that GCC complains
about?
The lines around there are:
/* Determine if Cleartype is in use. Used to enable a hack in
the char metric calculations which adds extra pixels to
compensate for the "sub-pixels" that are not counted by the
system APIs. */
cleartype_active =
SystemParametersInfo (SPI_GETFONTSMOOTHING, 0, &smoothing_enabled, 0)
&& smoothing_enabled
&& SystemParametersInfo (SPI_GETFONTSMOOTHINGTYPE, 0, &smoothing_type,
0)
&& smoothing_type == FE_FONTSMOOTHINGCLEARTYPE;
I "grep"ed in src directory, the result is:
$ pwd
/cygdrive/e/emacs-cvs/src
$ grep -nR smoothing *
w32term.c:6551: SystemParametersInfo (SPI_GETFONTSMOOTHING, 0,
&smoothing_enabled, 0)
w32term.c:6552: && smoothing_enabled
w32term.c:6553: && SystemParametersInfo (SPI_GETFONTSMOOTHINGTYPE, 0,
&smoothing_type, 0)
w32term.c:6554: && smoothing_type == FE_FONTSMOOTHINGCLEARTYPE;
By the way, it's the Unicode 2 branch.
Regards,
Guanpeng Xu
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/