Skip to content

Commit

Permalink
renamed SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H to SDL_HAVE_MACHINE_JO…
Browse files Browse the repository at this point in the history
…YSTICK_H
  • Loading branch information
sezero committed Feb 12, 2021
1 parent 2f8b1ff commit 8e69f18
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -21812,7 +21812,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test x$have_machine_joystick = xyes; then
$as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
$as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -2386,7 +2386,7 @@ CheckUSBHID()
have_machine_joystick=yes
])
if test x$have_machine_joystick = xyes; then
AC_DEFINE(SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H)
AC_DEFINE(SDL_HAVE_MACHINE_JOYSTICK_H)
fi
AC_MSG_RESULT($have_machine_joystick)

Expand Down
2 changes: 1 addition & 1 deletion include/SDL_config.h.in
Expand Up @@ -220,7 +220,7 @@
#undef SDL_JOYSTICK_RISCOS
#undef SDL_JOYSTICK_WINMM
#undef SDL_JOYSTICK_USBHID
#undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H
#undef SDL_HAVE_MACHINE_JOYSTICK_H

/* Enable various shared object loading systems */
#undef SDL_LOADSO_BEOS
Expand Down
6 changes: 3 additions & 3 deletions src/joystick/bsd/SDL_sysjoystick.c
Expand Up @@ -69,7 +69,7 @@
#include <sys/joystick.h>
#endif

#if SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H
#if SDL_HAVE_MACHINE_JOYSTICK_H
#include <machine/joystick.h>
#endif

Expand Down Expand Up @@ -407,7 +407,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy)
int nbutton, naxe = -1;
Sint32 v;

#if defined(__FREEBSD__) || SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H || defined(__FreeBSD_kernel__)
#if defined(__FREEBSD__) || SDL_HAVE_MACHINE_JOYSTICK_H || defined(__FreeBSD_kernel__)
struct joystick gameport;

if (joy->hwdata->type == BSDJOY_JOY) {
Expand Down Expand Up @@ -455,7 +455,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy)
}
return;
}
#endif /* defined(__FREEBSD__) || SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H */
#endif /* defined(__FREEBSD__) || SDL_HAVE_MACHINE_JOYSTICK_H */

rep = &joy->hwdata->inreport;

Expand Down

0 comments on commit 8e69f18

Please sign in to comment.