From: Chris S. <ir0...@gm...> - 2008-02-01 22:48:12
|
Hey All, I've come up with a possible solution: in c++locale.h, I added #undef __out and #undef __in: #ifdef __MINGW32__ extern "C" int __cdecl __mingw_vsnprintf (char*, size_t n, const char*, __gnuc_va_list); #undef __out #undef __in #endif Since this guard is already existing and 2 lines seem to correct all the issues, I don't think this is a major change, so hopefully it's digestible by the mainline gcc folks. Assuming this makes it in to mainline gcc, we would still need to add a gcc version guard around the definition of __in and __out in windef.h, but I think this is possibly the best solution for all involved. Thoughts? Chris -- Chris Sutcliffe http://emergedesktop.org |