X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/101ceb40b1d730118a1398a9a7efb4cdf529304e..c3952f6524b5827420836f856ef2074f20e72849:/src/gtk1/joystick.cpp?ds=sidebyside diff --git a/src/gtk1/joystick.cpp b/src/gtk1/joystick.cpp index e783f1276d..372046b52f 100644 --- a/src/gtk1/joystick.cpp +++ b/src/gtk1/joystick.cpp @@ -12,6 +12,7 @@ #ifdef __GNUG__ #pragma implementation "joystick.h" #endif +#if wxUSE_JOYSTICK #include #include @@ -54,7 +55,6 @@ void *wxJoystick::Entry(void) struct timeval time_out = {0, 0}; FD_ZERO(&read_fds); - DeferDestroy(TRUE); while (1) { TestDestroy(); @@ -202,7 +202,7 @@ int wxJoystick::GetProductId(void) const wxString wxJoystick::GetProductName(void) const { - return ""; + return wxT(""); } int wxJoystick::GetXMin(void) const @@ -355,4 +355,5 @@ bool wxJoystick::ReleaseCapture(void) m_polling = 0; return TRUE; } +#endif // wxUSE_JOYSTICK