configure.ac
changeset 13287 38b490ed9e32
parent 13281 f8707178f3db
child 13377 9d653cdc1797
     1.1 --- a/configure.ac	Mon Nov 25 15:02:45 2019 -0800
     1.2 +++ b/configure.ac	Mon Nov 25 15:02:48 2019 -0800
     1.3 @@ -3315,6 +3315,7 @@
     1.4              AC_DEFINE(SDL_JOYSTICK_HIDAPI, 1, [ ])
     1.5              EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
     1.6              SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
     1.7 +            SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
     1.8  
     1.9              if test x$have_libusb_h = xyes; then
    1.10                  EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
    1.11 @@ -3342,17 +3343,7 @@
    1.12                      AC_DEFINE_UNQUOTED(SDL_LIBUSB_DYNAMIC, "$libusb_lib", [ ])
    1.13                  fi
    1.14              else
    1.15 -                case "$host" in
    1.16 -                *-*-cygwin* | *-*-mingw32* )
    1.17 -                    SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
    1.18 -                    ;;
    1.19 -                *-*-darwin* )
    1.20 -                    SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
    1.21 -                    ;;
    1.22 -                * )
    1.23 -                    SOURCES="$SOURCES $srcdir/src/hidapi/linux/hid.c"
    1.24 -                    ;;
    1.25 -                esac
    1.26 +                SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
    1.27              fi
    1.28          fi
    1.29