X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6733873f5bc5de9ef538533da786250de9dd9c7..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/unix/joystick.cpp?ds=sidebyside diff --git a/src/unix/joystick.cpp b/src/unix/joystick.cpp index f5ad718346..b96c009826 100644 --- a/src/unix/joystick.cpp +++ b/src/unix/joystick.cpp @@ -21,6 +21,8 @@ #include "wx/window.h" #endif //WX_PRECOMP +#include "wx/thread.h" + #include #include #include @@ -394,7 +396,7 @@ int wxJoystick::GetNumberButtons() const if (m_device != -1) ioctl(m_device, JSIOCGBUTTONS, &nb); - if (nb > wxJS_MAX_BUTTONS) + if ((int)nb > wxJS_MAX_BUTTONS) nb = wxJS_MAX_BUTTONS; return nb; @@ -407,7 +409,7 @@ int wxJoystick::GetNumberAxes() const if (m_device != -1) ioctl(m_device, JSIOCGAXES, &nb); - if (nb > wxJS_MAX_AXES) + if ((int)nb > wxJS_MAX_AXES) nb = wxJS_MAX_AXES; return nb;