Index: CPythonLib/ctypes/__init__.py =================================================================== --- CPythonLib/ctypes/__init__.py (revision 70085) +++ CPythonLib/ctypes/__init__.py (working copy) @@ -127,7 +127,7 @@ if WINFUNCTYPE.__doc__: WINFUNCTYPE.__doc__ = CFUNCTYPE.__doc__.replace("CFUNCTYPE", "WINFUNCTYPE") -elif _os.name == "posix": +else: from _ctypes import dlopen as _dlopen from _ctypes import sizeof, byref, addressof, alignment, resize @@ -152,7 +152,7 @@ return super(py_object, self).__repr__() except ValueError: return "%s()" % type(self).__name__ -_check_size(py_object, "P") +#_check_size(py_object, "P") class c_short(_SimpleCData): _type_ = "h" @@ -234,12 +234,12 @@ else: def __repr__(self): return "%s(%s)" % (self.__class__.__name__, cast(self, c_void_p).value) -_check_size(c_char_p, "P") +#_check_size(c_char_p, "P") class c_void_p(_SimpleCData): _type_ = "P" c_voidp = c_void_p # backwards compatibility (to a bug) -_check_size(c_void_p) +#_check_size(c_void_p) # This cache maps types to pointers to them. _pointer_type_cache = {}