error: nested function in winnt.h
Marcelo Rezende Módolo
mrmodolo@terra.com.br
Mon Dec 1 00:43:00 GMT 2003
Hi,
when I try to compile the GNU Smalltalk version 2.1.5 I receive the
folowing error:
i18n.c: In function `iconvWrapper':
In file included from /usr/include/w32api/windef.h:246,
from /usr/include/w32api/windows.h:48,
from i18n.c:289:
/usr/include/w32api/winnt.h: In function `gst_initModule':
/usr/include/w32api/winnt.h:3176: error: nested function
`GetCurrentFiber' declared `extern'
/usr/include/w32api/winnt.h:3187: error: nested function
`GetFiberData' declared `extern'
make: ** [i18n.lo] Erro 1
and that is the lines in winnt.h:
#if defined(__GNUC__)
PVOID GetCurrentFiber(void);
PVOID GetFiberData(void);
PVOID GetCurrentFiber(void);
extern __inline__ PVOID GetCurrentFiber(void)
{
void* ret;
__asm__ volatile (
"movl %%fs:0x10,%0"
: "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
);
return ret;
}
PVOID GetFiberData(void);
extern __inline__ PVOID GetFiberData(void)
{
void* ret;
__asm__ volatile (
"movl %%fs:0x10,%0\n"
"movl (%0),%0"
: "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
);
return ret;
}
If I comment the "extern" keyworld in both functions the compilation
ocurs with no problem...
Is there a error in winnt.h file??
Thanks,
marcelo modolo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031201/336baf64/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list