mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Make _ctypes_test.c compile on Windows.
This commit is contained in:
parent
55b4a7b6dc
commit
918d830560
1 changed files with 2 additions and 2 deletions
|
|
@ -333,7 +333,7 @@ struct BITS {
|
||||||
short M: 1, N: 2, O: 3, P: 4, Q: 5, R: 6, S: 7;
|
short M: 1, N: 2, O: 3, P: 4, Q: 5, R: 6, S: 7;
|
||||||
};
|
};
|
||||||
|
|
||||||
PyAPI_FUNC(void) set_bitfields(struct BITS *bits, char name, int value)
|
EXPORT(void) set_bitfields(struct BITS *bits, char name, int value)
|
||||||
{
|
{
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case 'A': bits->A = value; break;
|
case 'A': bits->A = value; break;
|
||||||
|
|
@ -356,7 +356,7 @@ PyAPI_FUNC(void) set_bitfields(struct BITS *bits, char name, int value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PyAPI_FUNC(int) unpack_bitfields(struct BITS *bits, char name)
|
EXPORT(int) unpack_bitfields(struct BITS *bits, char name)
|
||||||
{
|
{
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case 'A': return bits->A;
|
case 'A': return bits->A;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue