X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_joystick.c;h=b73d7e7b8fcfea7841efaefe6b12eecad11c7380;hb=5a824fe96544516c5f98f18c6ca401de33e5be88;hp=7d4c502033b4a34ac1fd247240f4035f69acf150;hpb=34617b0203c6a98039588e84b801aec805963610;p=freeglut diff --git a/src/fg_joystick.c b/src/fg_joystick.c index 7d4c502..b73d7e7 100644 --- a/src/fg_joystick.c +++ b/src/fg_joystick.c @@ -46,21 +46,20 @@ # ifdef HAVE_USB_JS # if defined(__NetBSD__) -/* XXX The below hack is done until freeglut's autoconf is updated. */ -# define HAVE_USBHID_H 1 # ifdef HAVE_USBHID_H # include # else # include # endif +# include # elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) # ifdef HAVE_USBHID_H # include # else # include # endif +# include # endif -# include # include /* Compatibility with older usb.h revisions */ @@ -324,7 +323,7 @@ static void fghJoystickRawRead( SFG_Joystick* joy, int* buttons, float* axes ) if( joy->error ) return; - fgPlatformJoystickRawRead ( joy, buttons, axes ); + fgPlatformJoystickRawRead ( joy, buttons, axes ); } /*