Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Should ctypes handle mis-matching structure return ABI between mingw and MSVC?

17 views
Skip to first unread message

Just Fill Bugs

unread,
Jul 5, 2011, 11:12:47 PM7/5/11
to pytho...@python.org
According the Bug 36834 of gcc, there is a mis-matching between mingw
and MSVC when a struct was returned by value from a C function.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36834

Should ctypes handle this situation automatically somehow?

A ctypes discussion on 2009:

http://thread.gmane.org/gmane.comp.python.ctypes.user/4439

Nobody

unread,
Jul 6, 2011, 8:25:31 PM7/6/11
to
On Wed, 06 Jul 2011 11:12:47 +0800, Just Fill Bugs wrote:

> According the Bug 36834 of gcc, there is a mis-matching between mingw and
> MSVC when a struct was returned by value from a C function.
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36834
>
> Should ctypes handle this situation automatically somehow?

I would expect this to be the responsibility of libffi rather than ctypes.

0 new messages