bsd: Patched to compile.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 10 Aug 2018 14:54:26 -0400
changeset 1210694f9bf5b9c36
parent 12105 997ec56425a8
child 12107 7c7cee9f2bc4
bsd: Patched to compile.

(I think.)
src/joystick/bsd/SDL_sysjoystick.c
     1.1 --- a/src/joystick/bsd/SDL_sysjoystick.c	Fri Aug 10 14:42:40 2018 -0400
     1.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Fri Aug 10 14:54:26 2018 -0400
     1.3 @@ -163,6 +163,9 @@
     1.4  
     1.5  static int numjoysticks = 0;
     1.6  
     1.7 +static int BSD_JoystickOpen(SDL_Joystick * joy, int device_index);
     1.8 +static void BSD_JoystickClose(SDL_Joystick * joy);
     1.9 +
    1.10  static int
    1.11  BSD_JoystickInit(void)
    1.12  {
    1.13 @@ -611,7 +614,7 @@
    1.14  {
    1.15      SDL_JoystickGUID guid;
    1.16      /* the GUID is just the first 16 chars of the name for now */
    1.17 -    const char *name = BSD_JoystickNameForDeviceIndex( device_index );
    1.18 +    const char *name = BSD_JoystickGetDeviceName( device_index );
    1.19      SDL_zero( guid );
    1.20      SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) );
    1.21      return guid;