SGL-UT / GPSTk

ATTENTION: This repository has been moved and is for archival purposes only. GPSTk toolkit has been renamed to GNSSTK and has been split into two new separate repositories. GNSSTK now only contains libraries while the other repository GNSSTK-APPS contains only applications. The rename and split into libraries and applications started with version v12.0.0 on September 2021. GPSTk --> GNSSTK at https://gitlab.com/sgl-ut/gnsstk --> GNSSTK-APPS at https://gitlab.com/sgl-ut/gnsstk-apps
Other
339 stars 182 forks source link

BYTE_ORDER not defined in Mingw/Msys2 Build #31

Closed xaedes closed 3 years ago

xaedes commented 7 years ago
In file included from H:/msys64/home/xaedes/GPSTk/core/lib/GNSSEph/EngNav.hpp:50:0,
                 from H:/msys64/home/xaedes/GPSTk/core/lib/GNSSEph/EngAlmanac.hpp:46,
                 from H:/msys64/home/xaedes/GPSTk/core/lib/GNSSCore/IonoModel.hpp:46,
                 from H:/msys64/home/xaedes/GPSTk/core/lib/GNSSCore/IonoModelStore.hpp:48,
                 from H:/msys64/home/xaedes/GPSTk/core/lib/ClockModel/ObsRngDev.hpp:51,
                 from H:/msys64/home/xaedes/GPSTk/core/lib/ClockModel/ORDEpoch.hpp:48,
                 from H:/msys64/home/xaedes/GPSTk/core/lib/ClockModel/ObsClockModel.hpp:56,
                 from H:/msys64/home/xaedes/GPSTk/core/lib/ClockModel/LinearClockModel.hpp:50,
                 from H:/msys64/home/xaedes/GPSTk/core/lib/ClockModel/LinearClockModel.cpp:46:
H:/msys64/home/xaedes/GPSTk/core/lib/Utilities/BinUtils.hpp:66:2: error: #error "Platform doesn't support BYTE_ORDER?"
 #error "Platform doesn't support BYTE_ORDER?"
  ^~~~~

The issue is caused because the system types headers defining BYTE_ORDER are included depending on the platform this is build and mingw is not included.