X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7ec698211d5d82a009ac80fb354059e9af497508..f61ed7ee42d7647663e48ac55062be0935bb07aa:/src/os2/joystick.cpp diff --git a/src/os2/joystick.cpp b/src/os2/joystick.cpp index 0b19280bc7..c86cb881a6 100644 --- a/src/os2/joystick.cpp +++ b/src/os2/joystick.cpp @@ -9,16 +9,17 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -// // For compilers that support precompilation, includes "wx.h". -// #include "wx/wxprec.h" -#include "wx/defs.h" - #if wxUSE_JOYSTICK -#include "wx/string.h" +#include "wx/joystick.h" + +#ifndef WX_PRECOMP + #include "wx/string.h" +#endif + #define INCL_PM #define INCL_DOS #include "wx/os2/private.h" @@ -26,7 +27,6 @@ #define NO_JOYGETPOSEX #include "wx/window.h" -#include "wx/joystick.h" IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject) @@ -101,7 +101,7 @@ bool wxJoystick::IsOk() const return false; } -int wxJoystick::GetNumberJoysticks() const +int wxJoystick::GetNumberJoysticks() { // TODO return 0; @@ -289,4 +289,5 @@ bool wxJoystick::ReleaseCapture() // TODO return false; } + #endif // wxUSE_JOYSTICK