X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FATC-Outputs.cxx;h=97a8df77169a19635f56fcebec117f52d3178f4e;hb=2a9bf393c3d9196bd6a260d4e3b49d54ae2aac95;hp=c9099cb9ce3a1c95a222166deb1105fc12a65a8e;hpb=0590333e5336af4f03ffd40ca679bbc4e8b1dde4;p=flightgear.git diff --git a/src/Network/ATC-Outputs.cxx b/src/Network/ATC-Outputs.cxx index c9099cb9c..97a8df771 100644 --- a/src/Network/ATC-Outputs.cxx +++ b/src/Network/ATC-Outputs.cxx @@ -173,6 +173,7 @@ static int ATCSetStepper( int fd, unsigned char channel, } +#ifdef ATCFLIGHTSIM_HAVE_COMPASS // Read status of last stepper written to static unsigned char ATCReadStepper( int fd ) { #if defined( unix ) || defined( __CYGWIN__ ) @@ -195,6 +196,7 @@ static unsigned char ATCReadStepper( int fd ) { return 0; #endif } +#endif // Turn a lamp on or off @@ -346,9 +348,7 @@ bool FGATCOutput::open( int lock_fd ) { ATCRelease( lock_fd ); -#if defined( _MSC_VER ) - ulMilliSecondSleep(33); -#elif defined (WIN32) && !defined(__CYGWIN__) +#ifdef _WIN32 Sleep (33); #else usleep(33);