src/joystick/bsd/SDL_sysjoystick.c
changeset 6290 4cf8e87aff95
parent 6138 4c64952a58fb
child 6401 a4bd9821a796
equal deleted inserted replaced
6288:1204ff03a0c1 6290:4cf8e87aff95
   147 static char *joydevnames[MAX_JOYS];
   147 static char *joydevnames[MAX_JOYS];
   148 
   148 
   149 static int report_alloc(struct report *, struct report_desc *, int);
   149 static int report_alloc(struct report *, struct report_desc *, int);
   150 static void report_free(struct report *);
   150 static void report_free(struct report *);
   151 
   151 
   152 #if defined(USBHID_UCR_DATA) || defined(__FreeBSD_kernel__)
   152 #if defined(USBHID_UCR_DATA)
   153 #define REP_BUF_DATA(rep) ((rep)->buf->ucr_data)
   153 #define REP_BUF_DATA(rep) ((rep)->buf->ucr_data)
   154 #elif (defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063))
   154 #elif (defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063))
   155 #define REP_BUF_DATA(rep) ((rep)->buf->ugd_data)
   155 #define REP_BUF_DATA(rep) ((rep)->buf->ugd_data)
   156 #else
   156 #else
   157 #define REP_BUF_DATA(rep) ((rep)->buf->data)
   157 #define REP_BUF_DATA(rep) ((rep)->buf->data)