diff --git a/utils/GPSsmooth/MIDG-II.cxx b/utils/GPSsmooth/MIDG-II.cxx index 3d84d9d2b..9dedceebc 100644 --- a/utils/GPSsmooth/MIDG-II.cxx +++ b/utils/GPSsmooth/MIDG-II.cxx @@ -1,12 +1,11 @@ #include -#include - #include #include #include #include #include +#include #include "MIDG-II.hxx" @@ -26,11 +25,11 @@ static uint32_t read_swab( char *buf, size_t offset, size_t size ) { char *ptr = buf + offset; // MIDG data is big endian so swap if needed. - if ( ulIsLittleEndian ) { + if ( sgIsLittleEndian() ) { if ( size == 4 ) { - ulEndianSwap( (uint32_t *)ptr ); + sgEndianSwap( (uint32_t *)ptr ); } else if ( size == 2 ) { - ulEndianSwap( (uint16_t *)ptr ); + sgEndianSwap( (uint16_t *)ptr ); } }