COM method code is windows specific

This commit is contained in:
Thomas Heller 2008-08-19 19:40:23 +00:00
parent 6b094a4258
commit d9ccf8c547
1 changed files with 4 additions and 1 deletions

View 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 = {