Commit 64f448b26c40600fb584ce8de87b7a2490bf1735

Sam Lantinga 2020-12-13T02:01:39

libusb hid.c is already included in SDL_hidapi.c

diff --git a/configure b/configure
index 71403d4..9d95014 100755
--- a/configure
+++ b/configure
@@ -24443,7 +24443,6 @@ $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
             if test x$have_libusb_h = xyes; then
                 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
                 if test x$require_hidapi_libusb = xyes; then
-                    SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
                 else
                     if test x$have_loadso != xyes; then
diff --git a/configure.ac b/configure.ac
index c3327c3..6337e12 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3385,7 +3385,6 @@ AS_HELP_STRING([--enable-hidapi-libusb], [use libusb for low level joystick driv
             if test x$have_libusb_h = xyes; then
                 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
                 if test x$require_hidapi_libusb = xyes; then
-                    SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
                 else
                     if test x$have_loadso != xyes; then