*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40553
This commit is contained in:
parent
2cd7450f7b
commit
180f7d626c
1 changed files with 14 additions and 3 deletions
|
@ -32,6 +32,8 @@ static char rcsid =
|
||||||
"@(#) $Id$";
|
"@(#) $Id$";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <sys/param.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -406,11 +408,20 @@ report_alloc(struct report *r, struct report_desc *rd, int repind)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
#ifdef USBHID_NEW
|
#ifdef __FreeBSD__
|
||||||
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
|
# if (__FreeBSD_version >= 470000)
|
||||||
#else
|
len = hid_report_size(rd, r->rid, repinfo[repind].kind);
|
||||||
|
# else
|
||||||
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
|
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
# ifdef USBHID_NEW
|
||||||
|
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
|
||||||
|
# else
|
||||||
|
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
SDL_SetError("Negative HID report size");
|
SDL_SetError("Negative HID report size");
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue