Re: [Cegcc-devel] mingw32ce, :: operator and w32api macros

2008-12-13 Thread Stanislav V. Blinov
On Sat, 2008-12-13 at 17:50 +0100, mosfet wrote: > 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)

Re: [Cegcc-devel] mingw32ce, :: operator and w32api macros

2008-12-13 Thread mosfet
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); //WINBASEA

Re: [Cegcc-devel] mingw32ce, :: operator and w32api macros

2008-12-13 Thread mosfet
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 LockResourc

Re: [Cegcc-devel] mingw32ce, :: operator and w32api macros

2008-12-13 Thread mosfet
Hi, Thanks for your report! I think this function should be defined like visual ones as inline : _inline DWORD WINAPI TlsAlloc(void) { return TlsCall(TLS_FUNCALLOC, 0); } _inline BOOL WINAPI TlsFree(DWORD dwTlsIndex) { return TlsCall(TLS_FUNCFREE, dwTlsIndex); } _inline LPVOID