X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=utils%2FGPSsmooth%2FMIDG-II.hxx;h=21ce5856350b01764a3b836bd71c8a641bf00685;hb=8862b3e2b3a30d45df23e80a270b6be6b6476b95;hp=cfa5daa55893dbab97afbc03612c027f74dbc121;hpb=02512e28c081ec28ce2666a350866bb2c55ee41a;p=flightgear.git diff --git a/utils/GPSsmooth/MIDG-II.hxx b/utils/GPSsmooth/MIDG-II.hxx index cfa5daa55..21ce58563 100644 --- a/utils/GPSsmooth/MIDG-II.hxx +++ b/utils/GPSsmooth/MIDG-II.hxx @@ -12,23 +12,14 @@ #include #include -#ifdef HAVE_STDINT_H -# include -#elif defined( _MSC_VER ) || defined(__MINGW32__) || defined(sun) -typedef signed short int16_t; -typedef signed int int32_t; -typedef unsigned short uint16_t; -typedef unsigned int uint32_t; -#else -# error "Port me! Platforms that don't have need to define int8_t, et. al." -#endif - +#include #include +#include -SG_USING_STD(cout); -SG_USING_STD(endl); -SG_USING_STD(string); -SG_USING_STD(vector); +using std::cout; +using std::endl; +using std::string; +using std::vector; // encapsulate a midg integer time (fixme, assumes all times in a track @@ -143,6 +134,8 @@ public: // returns id # if a valid message found. int next_message( SGIOChannel *ch, SGIOChannel *log, MIDGpos *pos, MIDGatt *att ); + int next_message( SGSerialPort *serial, SGIOChannel *log, + MIDGpos *pos, MIDGatt *att ); // load the named file into internal buffers bool load( const string &file );