summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-07-11 09:41:04 (GMT)
committerThomas Heller <theller@ctypes.org>2007-07-11 09:41:04 (GMT)
commit918d83056049a077989385ae4ff2618fc7b25a47 (patch)
tree62ec389e90cb2b101a4501e281a2c09ba4b9cdf3 /Modules
parent55b4a7b6dc58a49a60f93fa198a6cca1ac28a31a (diff)
downloadcpython-918d83056049a077989385ae4ff2618fc7b25a47.zip
cpython-918d83056049a077989385ae4ff2618fc7b25a47.tar.gz
cpython-918d83056049a077989385ae4ff2618fc7b25a47.tar.bz2
Make _ctypes_test.c compile on Windows.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c
index 53ff303..8a198a7 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;