]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/joystick.cpp
Compile fix when not using WXR resources.
[wxWidgets.git] / src / os2 / joystick.cpp
index 5f20af8209c56c0fc783d0c5fc18173021943850..e40b19826e9d8de14392cc01e45390f5bd4f5d4e 100644 (file)
@@ -9,9 +9,13 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+#include "wx/defs.h"
+
+#if wxUSE_JOYSTICK
+
 #include "wx/string.h"
 #define INCL_PM
-#include "os2.h"
+#define INCL_DOS
 #include "wx/os2/private.h"
 
 #define NO_JOYGETPOSEX
@@ -280,4 +284,5 @@ bool wxJoystick::ReleaseCapture()
     // TODO
     return FALSE;
 }
+#endif  // wxUSE_JOYSTICK