From 99cfb298debd05706b353875fe75dd5290890adf Mon Sep 17 00:00:00 2001 From: brad0 Date: Sat, 2 Jan 2021 21:49:42 -0500 Subject: [PATCH] Switch to using the endian.h header on OpenBSD. (#110) Switch to using the endian.h header on OpenBSD. --- doc/history.adoc | 2 +- include/boost/predef/other/endian.h | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/doc/history.adoc b/doc/history.adoc index d21ebf9..a39a3eb 100644 --- a/doc/history.adoc +++ b/doc/history.adoc @@ -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 diff --git a/include/boost/predef/other/endian.h b/include/boost/predef/other/endian.h index 0281e4a..eb82da2 100644 --- a/include/boost/predef/other/endian.h +++ b/include/boost/predef/other/endian.h @@ -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 # else # if BOOST_OS_MACOS # include # else # if BOOST_OS_BSD -# if BOOST_OS_BSD_OPEN -# include -# else -# include -# endif +# include # endif # endif # endif