[issue3547] Ctypes is confused by bitfields of varying integer types

Roumen Petrov report at bugs.python.org
Fri Sep 26 01:36:24 CEST 2008


Roumen Petrov <bugtrack at roumenpetrov.info> added the comment:

Yes this extra define was the problem.
Instead hint /* Windows */ what about /* MSVC, GCC(with -mms-bitfields) */ ?

The option -mms-bitfields is available for GCC compiler on mingw and
cygwin targets.


About test_bitfields.py:
- comment in test_mixed_4: if GCC compiler has option -mms-bitfields it
will produce code compatible with MSVC. May be comment has to include
this information. 

- may be method test_mixed_1 need similar comment as test_mixed_4, but
even without comment is fine with me.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3547>
_______________________________________


More information about the Python-bugs-list mailing list