X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5da0ce7cb746318511b3974b7882c72c0de45e2..0286d08d1453506f9ff9a830d58b3b35817d0b14:/src/mac/corefoundation/hidjoystick.cpp?ds=sidebyside diff --git a/src/mac/corefoundation/hidjoystick.cpp b/src/mac/corefoundation/hidjoystick.cpp index ee7178d643..12d5b86ba9 100644 --- a/src/mac/corefoundation/hidjoystick.cpp +++ b/src/mac/corefoundation/hidjoystick.cpp @@ -25,7 +25,7 @@ //--------------------------------------------------------------------------- //we only support HID on OSX (DARWIN), since it requires DARWIN... -#if wxUSE_JOYSTICK && defined(__DARWIN__) +#if wxUSE_JOYSTICK && defined(__DARWIN__) && wxUSE_THREADS //--------------------------------------------------------------------------- // Includes @@ -34,11 +34,11 @@ #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/event.h" //joystick wxEvents + #include "wx/window.h" //for wxWindow to "capture" joystick #endif #include "wx/joystick.h" //... #include "wx/thread.h" //wxThread for polling thread/ wxCriticalSection -#include "wx/window.h" //for wxWindow to "capture" joystick //private headers #include "wx/mac/corefoundation/hid.h" //private mac hid stuff @@ -75,7 +75,7 @@ class wxHIDJoystick : public wxHIDDevice { public: wxHIDJoystick(); - ~wxHIDJoystick(); + virtual ~wxHIDJoystick(); bool Create(int nWhich); virtual void BuildCookies(CFArrayRef Array);