]> git.saurik.com Git - wxWidgets.git/commitdiff
(blind) fix for joystick compilation problems
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 May 2001 22:49:40 +0000 (22:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 May 2001 22:49:40 +0000 (22:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/joystick.h
src/gtk/joystick.cpp
src/gtk1/joystick.cpp

index 370ee935c69698f6eb3347f11774c2d5e04c12dc..7203acb5bb52b24afd966bb2dd43a61695f47566 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _WX_JOYSTICK_H_BASE_
 #define _WX_JOYSTICK_H_BASE_
 
+#if wxUSE_JOYSTICK
+
 #if defined(__WXMSW__)
 #include "wx/msw/joystick.h"
 #elif defined(__WXMOTIF__)
@@ -15,5 +17,7 @@
 #include "wx/stubs/joystick.h"
 #endif
 
+#endif // wxUSE_JOYSTICK
+
 #endif
     // _WX_JOYSTICK_H_BASE_
index 9994f9a66706398e713a9a0a383ace1ee992b46f..334fefee346e035945f8cb4cfedabed9bf1bc994 100644 (file)
 #pragma implementation "joystick.h"
 #endif
 
-#include <wx/joystick.h>
+#include "wx/defs.h"
 
 #if wxUSE_JOYSTICK
 
+#include "wx/joystick.h"
+
 #include <linux/joystick.h>
 #include <sys/types.h>
 #include <sys/stat.h>
index 9994f9a66706398e713a9a0a383ace1ee992b46f..334fefee346e035945f8cb4cfedabed9bf1bc994 100644 (file)
 #pragma implementation "joystick.h"
 #endif
 
-#include <wx/joystick.h>
+#include "wx/defs.h"
 
 #if wxUSE_JOYSTICK
 
+#include "wx/joystick.h"
+
 #include <linux/joystick.h>
 #include <sys/types.h>
 #include <sys/stat.h>