Fix for USB HID API. Fixes build on NetBSD and FreeBSD, but maybe causes
trouble on OpenBSD? --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40427
This commit is contained in:
parent
70d7936adc
commit
fd6a9a929b
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue