diff options
author | Thomas Heller <theller@ctypes.org> | 2007-07-11 09:41:04 +0000 |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-07-11 09:41:04 +0000 |
commit | 8117206a183617ae6984f5db248be2df6919176c (patch) | |
tree | 01ef29d12a482f339cdd95b6992d71bcd32aa618 /Modules/_ctypes/_ctypes_test.c | |
parent | 60783202b8e51b6230d8001bf4ab2fd9e46adf73 (diff) | |
download | cpython-8117206a183617ae6984f5db248be2df6919176c.tar.gz |
Make _ctypes_test.c compile on Windows.
Diffstat (limited to 'Modules/_ctypes/_ctypes_test.c')
-rw-r--r-- | Modules/_ctypes/_ctypes_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c index 53ff3036d7..8a198a71f0 100644 --- a/Modules/_ctypes/_ctypes_test.c +++ b/Modules/_ctypes/_ctypes_test.c @@ -333,7 +333,7 @@ struct BITS { 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) { 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) { case 'A': return bits->A; |