diff --git a/chid.pxd b/chid.pxd index 8b0f44c..798c404 100644 --- a/chid.pxd +++ b/chid.pxd @@ -1,10 +1,10 @@ from libc.stddef cimport wchar_t, size_t -cdef extern from "hidapi.h": +cdef extern from "": ctypedef struct hid_device: pass - cdef enum hid_bus_type: + ctypedef enum hid_bus_type: HID_API_BUS_UNKNOWN = 0x00, HID_API_BUS_USB = 0x01, HID_API_BUS_BLUETOOTH = 0x02, diff --git a/hid.pyx b/hid.pyx index 47ba367..674aec7 100644 --- a/hid.pyx +++ b/hid.pyx @@ -11,10 +11,10 @@ __version__ = "0.14.0" hid_init() -cdef extern from "ctype.h": +cdef extern from "": int wcslen(wchar_t*) -cdef extern from "stdlib.h": +cdef extern from "": void free(void* ptr) void* malloc(size_t size)