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 LockResource(HGLOBAL hResData) { return ((LPVOID)hResData); } _inline DWORD GetCurrentThreadId(void) { return ((DWORD)(((HANDLE *)(PUserKData+SYSHANDLE_OFFSET))[SH_CURTHREAD])); } .. On Sat, 13 Dec 2008 03:20:12 +0300, "Stanislav Blinov" <stanislav.bli...@gmail.com> wrote: > Hello everyone, > > Recently I was playing with mingw32ce-g++ built from SVN 1202 to compile > different projects, and it struck me that in some source files the compiler > would issue an error where global scope resolution (::) operator was used. > I > investigated it a bit and found out the reason for this. The error occurred > on attempt to call these functions (I omit param lists here): > >>From winbase.h: > ::LockResource() > >>From kfuncs.h: > ::GetCurrentThreadId() > ::TlsAlloc() > ::TlsSetValue() > ::TlsFree() > > The error occurs because these functions are actually implemented as macros > put into braces, like this: > #define TlsAlloc() (TlsCall(TLS_FUNCALLOC, 0)) > > Certainly, attempt to put '::' before such expression would make compiler > to > issue an error. > Is this an easy issue to fix? Maybe I should post a bugreport or something > like that? I mean, I didn't dig really deep into this so I'm not sure if > I'm > able to propose a solution as yet. > ------------------------------------------------------------------------------ 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