Skip to content

Commit d7b696a

Browse files
committed
handle both endianness macros defined
1 parent 0a7860f commit d7b696a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/boost/json/detail/config.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@
260260
# else
261261
# error The Boost.JSON library could not determine the endianness of this platform. Define either BOOST_JSON_BIG_ENDIAN or BOOST_JSON_LITTLE_ENDIAN.
262262
# endif
263+
#elif defined(BOOST_JSON_BIG_ENDIAN) && defined(BOOST_JSON_LITTLE_ENDIAN)
264+
# error Both BOOST_JSON_BIG_ENDIAN and BOOST_JSON_LITTLE_ENDIAN are defined. You should define only one of them.
263265
#endif
264266

265267
#if defined(__cpp_constinit) && __cpp_constinit >= 201907L

0 commit comments

Comments
 (0)