/* Return the next available joystick instance ID This may be called by drivers from multiple threads, unprotected by any locks  */
SDL_JoystickID SDL_GetNextJoystickInstanceID()
/* Return the next available joystick instance ID This may be called by drivers from multiple threads, unprotected by any locks  */
SDL_JoystickID SDL_GetNextJoystickInstanceID()
{
    return SDL_AtomicIncRef(&SDL_next_joystick_instance_id);
}