From: Thomas Heller Date: Tue, 19 Aug 2008 19:40:23 +0000 (+0000) Subject: COM method code is windows specific X-Git-Tag: v2.6b3~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9ccf8c547f3163946462fd382991b27d4d1a4ee;p=thirdparty%2FPython%2Fcpython.git COM method code is windows specific --- diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 2a5da4eeb47e..a509d4b0107f 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 = {