src/joystick/bsd/SDL_sysjoystick.c
branchSDL-1.2
changeset 6289 62ff1c0a103f
parent 6137 4720145f848b
child 6402 e786a4241cb5
equal deleted inserted replaced
6279:8e98c714bb2a 6289:62ff1c0a103f
   146 static char *joydevnames[MAX_JOYS];
   146 static char *joydevnames[MAX_JOYS];
   147 
   147 
   148 static int	report_alloc(struct report *, struct report_desc *, int);
   148 static int	report_alloc(struct report *, struct report_desc *, int);
   149 static void	report_free(struct report *);
   149 static void	report_free(struct report *);
   150 
   150 
   151 #if defined(USBHID_UCR_DATA) || defined(__FreeBSD_kernel__)
   151 #if defined(USBHID_UCR_DATA)
   152 #define REP_BUF_DATA(rep) ((rep)->buf->ucr_data)
   152 #define REP_BUF_DATA(rep) ((rep)->buf->ucr_data)
   153 #elif (defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063))
   153 #elif (defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063))
   154 #define REP_BUF_DATA(rep) ((rep)->buf->ugd_data)
   154 #define REP_BUF_DATA(rep) ((rep)->buf->ugd_data)
   155 #else
   155 #else
   156 #define REP_BUF_DATA(rep) ((rep)->buf->data)
   156 #define REP_BUF_DATA(rep) ((rep)->buf->data)