From: ehofman Date: Tue, 11 Oct 2005 08:21:07 +0000 (+0000) Subject: Use our own set of endian functions. This fixes a Cygwin problem. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=edd619957d67b127723e0d5cce2c9c404de41f09;p=flightgear.git Use our own set of endian functions. This fixes a Cygwin problem. --- 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 ); } }