[Python-checkins] r65870 - python/trunk/Modules/_ctypes/_ctypes.c

thomas.heller python-checkins at python.org
Tue Aug 19 21:40:24 CEST 2008


Author: thomas.heller
Date: Tue Aug 19 21:40:23 2008
New Revision: 65870

Log:
COM method code is windows specific

Modified:
   python/trunk/Modules/_ctypes/_ctypes.c

Modified: python/trunk/Modules/_ctypes/_ctypes.c
==============================================================================
--- python/trunk/Modules/_ctypes/_ctypes.c	(original)
+++ python/trunk/Modules/_ctypes/_ctypes.c	Tue Aug 19 21:40:23 2008
@@ -3941,7 +3941,10 @@
 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 = {


More information about the Python-checkins mailing list