#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <stdio.h> //snprintf
+#if defined( _MSCVER_ )
+# include <io.h> //lseek, read, write
+#endif
#include STL_STRING
+#include <plib/ul.h>
+
#include <simgear/debug/logstream.hxx>
#include <simgear/io/iochannel.hxx>
#include <simgear/math/sg_types.hxx>
SG_USING_STD(string);
+#ifdef _MSC_VER
+# define snprintf _snprintf
+#endif
// Lock the ATC 610 hardware
static int ATC610xLock( int fd ) {
ATC610xRelease( lock_fd );
+#if defined( _MSCVER_ )
+ ulMilliSecondSleep(33);
+#else
usleep(33);
+#endif
}
compass_position = 0.0;