[Windows] __out symbol conflict

Mark Mitchell mark@codesourcery.com
Mon Feb 11 07:06:00 GMT 2008


Aaron W. LaFramboise wrote:
> A few years back, MS added macros __in, __out, __z, and a few others to 
> the W32 API interface, intended to be used with its Standard Annotation 
> Language (SAL) extensions for verifying program correctness.

> 1) Change __out to something else in GCC headers, perhaps __gcc_out

I am not a libstdc++ maintainer, but that is the change that I would 
recommend.  I believe that the libstdc++ folks already have a list of 
names not to use, and these can go on the list.

> 2) Is it possible to run fixincludes over GCC's own headers, to change 
> these names?

We really don't want to do that.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Libstdc++ mailing list