Skip to content

Commit

Permalink
handle both endianness macros defined
Browse files Browse the repository at this point in the history
  • Loading branch information
grisumbras committed Jun 12, 2022
1 parent f1b9420 commit e412d0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/boost/json/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@
# else
# error The Boost.JSON library could not determine the endianness of this platform. Define either BOOST_JSON_BIG_ENDIAN or BOOST_JSON_LITTLE_ENDIAN.
# endif
#elif defined(BOOST_JSON_BIG_ENDIAN) && defined(BOOST_JSON_LITTLE_ENDIAN)
# error Both BOOST_JSON_BIG_ENDIAN and BOOST_JSON_LITTLE_ENDIAN are defined. You should define only one of them.
#endif

BOOST_JSON_NS_BEGIN
Expand Down

0 comments on commit e412d0c

Please sign in to comment.