Skip to content

Commit e412d0c

Browse files
committed
handle both endianness macros defined
1 parent f1b9420 commit e412d0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/boost/json/detail/config.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@
266266
# else
267267
# error The Boost.JSON library could not determine the endianness of this platform. Define either BOOST_JSON_BIG_ENDIAN or BOOST_JSON_LITTLE_ENDIAN.
268268
# endif
269+
#elif defined(BOOST_JSON_BIG_ENDIAN) && defined(BOOST_JSON_LITTLE_ENDIAN)
270+
# error Both BOOST_JSON_BIG_ENDIAN and BOOST_JSON_LITTLE_ENDIAN are defined. You should define only one of them.
269271
#endif
270272

271273
BOOST_JSON_NS_BEGIN

0 commit comments

Comments
 (0)