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

Reply via email to