]> granicus.if.org Git - python/commitdiff
COM method code is windows specific
authorThomas Heller <theller@ctypes.org>
Tue, 19 Aug 2008 19:40:23 +0000 (19:40 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 19 Aug 2008 19:40:23 +0000 (19:40 +0000)
Modules/_ctypes/_ctypes.c

index 2a5da4eeb47e0621cd446b4d16da09ebc89754b3..a509d4b0107f9ce9f42868005a24e44315ed58fe 100644 (file)
@@ -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 = {