mirror of
https://github.com/yawut/SDL.git
synced 2026-08-22 16:55:29 -05:00
Fix for USB HID API. Fixes build on NetBSD and FreeBSD, but maybe causes
trouble on OpenBSD?
This commit is contained in:
@@ -409,9 +409,9 @@ report_alloc(struct report *r, struct report_desc *rd, int repind)
|
||||
int len;
|
||||
|
||||
#ifdef USBHID_NEW
|
||||
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
|
||||
#else
|
||||
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
|
||||
#else
|
||||
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
|
||||
#endif
|
||||
if (len < 0) {
|
||||
SDL_SetError("Negative HID report size");
|
||||
|
||||
Reference in New Issue
Block a user