X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/101ceb40b1d730118a1398a9a7efb4cdf529304e..6342bd1ab36c1957684c00d408d09fba65d33db6:/src/gtk/joystick.cpp diff --git a/src/gtk/joystick.cpp b/src/gtk/joystick.cpp index e783f1276d..372046b52f 100644 --- a/src/gtk/joystick.cpp +++ b/src/gtk/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