X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInput%2Fjs_demo.cxx;h=ee2b32e3011548a7dacbbd081f7df33ac08ceda8;hb=f6207d5cb8eeb2ed83e1873dd2f621785832a3f3;hp=448cecc2c3652034e615204cbb5fe3ab872225bf;hpb=4d0a6f5668ff2f8ca59a57a6ddd1c759c410900b;p=flightgear.git diff --git a/src/Input/js_demo.cxx b/src/Input/js_demo.cxx index 448cecc2c..ee2b32e30 100644 --- a/src/Input/js_demo.cxx +++ b/src/Input/js_demo.cxx @@ -2,12 +2,12 @@ # include #endif -#ifdef _WIN32 -#include +#ifdef HAVE_WINDOWS_H +# include #endif #include // plib/js.h should really include this !!!!!! -#include "Input/FGjs.hxx" +#include #define Z 8 @@ -30,7 +30,7 @@ int main ( int, char ** ) { useful[i] = ! ( js[i]->notWorking () ); if ( useful[i] ) { t++; - printf ( "Joystick %i: \"%s\"\n", i, js[i]->getName().c_str() ) ; + printf ( "Joystick %i: \"%s\"\n", i, js[i]->getName() ) ; } else printf ( "Joystick %i not detected\n", i ) ; } if ( t == 0 ) exit ( 1 ) ;