Hum Actually I had to comment also functions in Winbase.h to avoid multiple
definitions when recompiling cegcc toolchain

winbase.h:
-----------

/* These are defined in kfuncs.h.  */
//WINBASEAPI HANDLE WINAPI GetCurrentProcess(void);
//WINBASEAPI DWORD WINAPI GetCurrentProcessId(void);
//WINBASEAPI HANDLE WINAPI GetCurrentThread(void);
//WINBASEAPI DWORD WINAPI GetCurrentThreadId(void);

//WINBASEAPI BOOL WINAPI PulseEvent(HANDLE);

//extern BOOL ResetEvent(HANDLE);






On Sat, 13 Dec 2008 17:32:50 +0100, mosfet <foru...@smartmobili.com> wrote:
> Hum first I mean you need to declare it with inline but without the _
like
> this.
> Could you test and tell us if it solves your issue ?
> 
> 
> 
> 
> 
> 
> winbase.h:
> ----------
> 
> #ifdef _WIN32_WCE
> inline LPVOID LockResource(HGLOBAL hResData) { return ((LPVOID)hResData);
}
> 
> #else
> WINBASEAPI PVOID WINAPI LockResource(HGLOBAL);
> #endif
> 
> 
> kfunc.h:
> ------------
> 
> /* Process/Thread ID Methods */
> inline HANDLE GetCurrentThread(void) {
>       return ((HANDLE)(SH_CURTHREAD+SYS_HANDLE_BASE));
> }
> 
> inline HANDLE GetCurrentProcess(void) {
>       return ((HANDLE)(SH_CURPROC+SYS_HANDLE_BASE));
> }
> 
> inline DWORD GetCurrentThreadId(void) {
>       return ((DWORD)(((HANDLE
*)(PUserKData+SYSHANDLE_OFFSET))[SH_CURTHREAD]));
> }
> 
> inline DWORD GetCurrentProcessId(void) {
>       return ((DWORD)(((HANDLE *)(PUserKData+SYSHANDLE_OFFSET))[SH_CURPROC]));
> }
> 
> ...
> 
> inline BOOL PulseEvent(HANDLE h) {
>       return EventModify(h,EVENT_PULSE);
> }
> 
> inline BOOL ResetEvent(HANDLE h) {
>       return EventModify(h,EVENT_RESET);
> }
> 
> inline BOOL SetEvent(HANDLE h) {
>       return EventModify(h,EVENT_SET);
> }
> 
> ...
> 
> inline DWORD WINAPI TlsAlloc(void) { 
> return TlsCall(TLS_FUNCALLOC, 0); 
> }
>  
> inline BOOL WINAPI TlsFree(DWORD dwTlsIndex) { 
> return TlsCall(TLS_FUNCFREE, dwTlsIndex); 
> }
> 
> Danny,
> 
> Could you fix it on svn ? 
> 
> Thanks
> 
> 
> 
>
------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
>
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Cegcc-devel mailing list
> Cegcc-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cegcc-devel
> 

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to