]> granicus.if.org Git - python/commitdiff
Make _ctypes_test.c compile on Windows.
authorThomas Heller <theller@ctypes.org>
Wed, 11 Jul 2007 09:41:04 +0000 (09:41 +0000)
committerThomas Heller <theller@ctypes.org>
Wed, 11 Jul 2007 09:41:04 +0000 (09:41 +0000)
Modules/_ctypes/_ctypes_test.c

index 53ff3036d72c30341d359d1987ad756e97bb51c6..8a198a71f0b6e003affcb0a6d635edd9bf800fd6 100644 (file)
@@ -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;