Commit fd6a9a92 authored by Ryan C. Gordon's avatar Ryan C. Gordon

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
parent 70d7936a
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment