Kaydet (Commit) d9ccf8c5 authored tarafından Thomas Heller's avatar Thomas Heller

COM method code is windows specific

üst 6b094a42
...@@ -3941,7 +3941,10 @@ static int ...@@ -3941,7 +3941,10 @@ static int
CFuncPtr_nonzero(CFuncPtrObject *self) CFuncPtr_nonzero(CFuncPtrObject *self)
{ {
return ((*(void **)self->b_ptr != NULL) return ((*(void **)self->b_ptr != NULL)
|| (self->index != 0)); #ifdef MS_WIN32
|| (self->index != 0)
#endif
);
} }
static PyNumberMethods CFuncPtr_as_number = { static PyNumberMethods CFuncPtr_as_number = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment