From: Brandon S. <br...@oq...> - 2008-02-01 06:16:22
|
On Jan 31, 2008, at 6:06 PM, Chris Sutcliffe wrote: > Hey All, > > Danny, not sure if you follow this list anymore, but if you do, I'd > like your feedback... > > Brandon has added several MS defines to windef.h including: > > #define __out > > Brandon, can you please explain their purpose? > > unfortunately the __out conflicts with the std c++ headers, causing > errors with lines such as: > > const int __ret = __mingw_vsnprintf(__out, __size, __fmt, __args); > > so it looks like there is collision between MS and g++ now. This can > be controlled by the user by defining _NO_W32_PSEUDO_MODIFIERS: > > #ifndef _NO_W32_PSEUDO_MODIFIERS > #define IN > #define OUT > #define __in > #define __inout > #define __in_opt > #define __in_bcount(x) > #define __in_ecount(x) > #define __out > #define __out_ecount_part(x) > #define __out_ecount_part(x,y) > #define __struct_bcount(x) > #define __field_ecount_opt(x) > #define __out_bcount_opt(x) > #ifndef OPTIONAL > #define OPTIONAL > #endif > #endif > > but if a user should want to use them and compile code using std g++ > headers, there's an issue. I'm open to suggestions on how to handle > this one... > > Chris > > -- > Chris Sutcliffe > http://emergedesktop.org > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > MinGW-dvlpr mailing list > Min...@li... > https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr |