From: Kristján Valur Jónsson Date: Tue, 3 Mar 2009 06:52:34 +0000 (+0000) Subject: Issue5407 X-Git-Tag: v3.1a1~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45ed72ddaf16c97237f2ad522959d6ffd8b40e2e;p=python Issue5407 Broken Py3.1 release build in Visual Studio 2005 The CRT runtime structure that holds ioinfo doesn't appear to match the decleration from the headers provided with the Visual Studio 2005 crt sources. In Release, an extra 8 bytes follow the final BOOL. I cannot explain this, but the code works now, both in 32 bits and 64 --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 0d873d1e53..4731b81aa7 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -382,6 +382,12 @@ typedef struct { char pipech2[2]; __int64 startpos; BOOL utf8translations; +#ifndef _DEBUG + /* padding hack. 8 byte extra length observed at + * runtime, for 32 and 64 bits when not in _DEBUG + */ + __int32 _padding[2]; +#endif #endif /* _SAFECRT_IMPL */ } ioinfo; #endif