Subject: [Boost-bugs] [Boost C++ Libraries] #7516: Define endianity for ARM
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-17 09:27:54
#7516: Define endianity for ARM
-------------------------------------+--------------------------------------
Reporter: Jan Hudec <bulb@â¦> | Type: Patches
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.52.0
Severity: Problem | Keywords:
-------------------------------------+--------------------------------------
There are two cases here.
1. GCC and Clang define `__ARMEL__` on little-endian ARM and `__ARMEB__`
on big-endian ARM, so if either is defined, use it.
1. Visual C++ for WinCE target (not sure about ARM version of Win8 yet)
however does not define absolutely anything specific. It defines `__ARM__`
and `ARM`, but that might be defined in other compilers on big-endian too
and `_M_ARM` one would expect in analogy to `_M_X64` and similar is
'''not''' defined. However there are no big-endian Windows API
implementations at all, so the attached patch simply defaults to little-
endian if `_WIN32` is defined.
Note: The attached patch is minimal to get things to work, but the various
`_M_*` defines can probably be excluded from the condition if they get
covered by `_WIN32`.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7516> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC