Mercurial > sdl-ios-xcode
comparison src/joystick/bsd/SDL_sysjoystick.c @ 426:33712e5d1ec8
Fix for USB HID API. Fixes build on NetBSD and FreeBSD, but maybe causes
trouble on OpenBSD?
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 26 Jul 2002 17:13:17 +0000 |
parents | 173909e17b7f |
children | 1d36f593078a |
comparison
equal
deleted
inserted
replaced
425:edbbe5775244 | 426:33712e5d1ec8 |
---|---|
407 report_alloc(struct report *r, struct report_desc *rd, int repind) | 407 report_alloc(struct report *r, struct report_desc *rd, int repind) |
408 { | 408 { |
409 int len; | 409 int len; |
410 | 410 |
411 #ifdef USBHID_NEW | 411 #ifdef USBHID_NEW |
412 len = hid_report_size(rd, repinfo[repind].kind, &r->rid); | |
413 #else | |
412 len = hid_report_size(rd, repinfo[repind].kind, r->rid); | 414 len = hid_report_size(rd, repinfo[repind].kind, r->rid); |
413 #else | |
414 len = hid_report_size(rd, repinfo[repind].kind, &r->rid); | |
415 #endif | 415 #endif |
416 if (len < 0) { | 416 if (len < 0) { |
417 SDL_SetError("Negative HID report size"); | 417 SDL_SetError("Negative HID report size"); |
418 return (-1); | 418 return (-1); |
419 } | 419 } |