On 01/02/2013 05:44 PM, luigi scarso wrote:
On Wed, Jan 2, 2013 at 5:40 PM, Taco Hoekwater
mailto:taco@elvenkind.com> wrote: On 01/02/2013 05:31 PM, luigi scarso wrote:
I'm trying to compile luatex with --host=x86_64-w64-mingw32 --build=x86_64-linux-gnu (use a fixed font to see the error)
In file included from ../../../source/texk/web2c/__luatexdir/luafontloader/__fontforge/Unicode/char.c:29:0: /media/LaCie/opt/mingw-w64-__bin_x86_64-linux_20121031/x86___64-w64-mingw32/include/ctype.__h:102:23: error: expected ā)ā before ā_Cā _CRTIMP int __cdecl isalpha(int _C);
It looks like 'isalpha' is defined as a macro at this point already, making the declaration fail. Does that help?
yes, because source/texk/web2c/luatexdir/luafontloader/fontforge/inc/utype.h has #define isalpha(ch) (____utype[(ch)+1]&(____L|____U|____TITLE|____AL))
but why I have this error only with x86_64-w64-mingw32?
Either the 32bit version probably defines the CRT version differently,
e.g., you would probably not get the error with:
_CRTIMP int __cdecl isalpha(int)
Or the win32 headers do not load