From 3d0ed996514866ab6df5846dee53bcd578b40386 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 12 Jun 2001 23:15:16 +0000 Subject: [PATCH] Cygwin fixes contributed by Norman Vine. --- src/Input/fgjs.cxx | 3 +-- src/Input/jsinput.cxx | 8 +++----- src/Input/jsinput.h | 1 - src/Input/jssuper.cxx | 7 ++----- src/Input/jssuper.h | 3 +++ 5 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/Input/fgjs.cxx b/src/Input/fgjs.cxx index e9ed0aa72..59ea34a9b 100644 --- a/src/Input/fgjs.cxx +++ b/src/Input/fgjs.cxx @@ -26,7 +26,6 @@ #include STL_FSTREAM #include STL_STRING -#include #include SG_USING_STD(string); @@ -119,7 +118,7 @@ int main(void) { jsSuper *jss=new jsSuper(); jsInput *jsi=new jsInput(jss); jsi->displayValues(false); - int i; + // int i; int control=0; diff --git a/src/Input/jsinput.cxx b/src/Input/jsinput.cxx index 48d0d74be..5bf12a4c5 100644 --- a/src/Input/jsinput.cxx +++ b/src/Input/jsinput.cxx @@ -18,11 +18,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -#include #include -#include -#include - jsInput::jsInput(jsSuper *j) { jss=j; @@ -38,7 +34,7 @@ int jsInput::getInput(void){ bool gotit=false; float delta; - int i,current_button=0,button_bits; + int i, current_button = 0, button_bits = 0; joystick=axis=button=-1; @@ -113,5 +109,7 @@ int jsInput::getInput(void){ } } } + + return 0; } diff --git a/src/Input/jsinput.h b/src/Input/jsinput.h index b173a3a71..a9a37780d 100644 --- a/src/Input/jsinput.h +++ b/src/Input/jsinput.h @@ -24,7 +24,6 @@ #define _JSINPUT_H #include -#include class jsInput { private: diff --git a/src/Input/jssuper.cxx b/src/Input/jssuper.cxx index 4e1bf8059..49141da12 100644 --- a/src/Input/jssuper.cxx +++ b/src/Input/jssuper.cxx @@ -19,9 +19,6 @@ // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -#include // plib/js.h should really include this !!!!!! -#include - #include @@ -51,7 +48,7 @@ jsSuper::jsSuper(void) { int jsSuper::nextJoystick(void) { - int i; + // int i; if(!activeJoysticks) return 0; if(currentJoystick == last ) return 0; currentJoystick++; @@ -60,7 +57,7 @@ int jsSuper::nextJoystick(void) { } int jsSuper::prevJoystick(void) { - int i; + // int i; if(!activeJoysticks) return 0; if(currentJoystick == first ) return 0; currentJoystick--; diff --git a/src/Input/jssuper.h b/src/Input/jssuper.h index 356256dfe..48b7d7f67 100644 --- a/src/Input/jssuper.h +++ b/src/Input/jssuper.h @@ -21,6 +21,9 @@ #ifndef _JSSUPER_H #define _JSSUPER_H +#ifdef HAVE_CONFIG_H +# include +#endif #ifdef HAVE_WINDOWS_H # include -- 2.39.5