diff options
author | Thomas Heller <theller@ctypes.org> | 2008-08-19 19:40:23 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2008-08-19 19:40:23 (GMT) |
commit | d9ccf8c547f3163946462fd382991b27d4d1a4ee (patch) | |
tree | 64b7b194530ff6651380285cc62130ff54013962 /Modules | |
parent | 6b094a42585ebd6a08bd7e9a0814b06e38e77ac6 (diff) | |
download | cpython-d9ccf8c547f3163946462fd382991b27d4d1a4ee.zip cpython-d9ccf8c547f3163946462fd382991b27d4d1a4ee.tar.gz cpython-d9ccf8c547f3163946462fd382991b27d4d1a4ee.tar.bz2 |
COM method code is windows specific
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 2a5da4e..a509d4b 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -3941,7 +3941,10 @@ static int CFuncPtr_nonzero(CFuncPtrObject *self) { return ((*(void **)self->b_ptr != NULL) - || (self->index != 0)); +#ifdef MS_WIN32 + || (self->index != 0) +#endif + ); } static PyNumberMethods CFuncPtr_as_number = { |