summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2009-03-03 06:52:34 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2009-03-03 06:52:34 (GMT)
commit45ed72ddaf16c97237f2ad522959d6ffd8b40e2e (patch)
tree5922788e3e72336c7ca6f0f2c9c22e5cd1a83b62 /Modules
parenta88e4daf521dc9ca190bdab7d0b477b1a2faa5da (diff)
downloadcpython-45ed72ddaf16c97237f2ad522959d6ffd8b40e2e.zip
cpython-45ed72ddaf16c97237f2ad522959d6ffd8b40e2e.tar.gz
cpython-45ed72ddaf16c97237f2ad522959d6ffd8b40e2e.tar.bz2
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
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 0d873d1..4731b81 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