Switch to using the endian.h header on OpenBSD. (#110)

Switch to using the endian.h header on OpenBSD.
This commit is contained in:
brad0
2021-01-02 21:49:42 -05:00
committed by GitHub
parent 17cb5b78d5
commit 99cfb298de
2 changed files with 3 additions and 7 deletions

View File

@ -9,7 +9,7 @@ http://www.boost.org/LICENSE_1_0.txt)
== 1.12
*
* Switch to using the endian.h header on OpenBSD. (Brad Smith)
== 1.11

View File

@ -54,18 +54,14 @@ information and acquired knowledge:
*/
#if !BOOST_ENDIAN_BIG_BYTE && !BOOST_ENDIAN_BIG_WORD && \
!BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_LITTLE_WORD
# if BOOST_LIB_C_GNU || BOOST_PLAT_ANDROID
# if BOOST_LIB_C_GNU || BOOST_PLAT_ANDROID || BOOST_OS_BSD_OPEN
# include <endian.h>
# else
# if BOOST_OS_MACOS
# include <machine/endian.h>
# else
# if BOOST_OS_BSD
# if BOOST_OS_BSD_OPEN
# include <machine/endian.h>
# else
# include <sys/endian.h>
# endif
# include <sys/endian.h>
# endif
# endif
# endif