From d9ccf8c547f3163946462fd382991b27d4d1a4ee Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Tue, 19 Aug 2008 19:40:23 +0000 Subject: [PATCH] COM method code is windows specific --- Modules/_ctypes/_ctypes.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 2a5da4eeb4..a509d4b010 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 = { -- 2.50.0