endian_compat.h 777 B

12345678910111213141516171819202122232425262728
  1. /*
  2. Copyright Rene Rivera 2013-2018
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #ifndef BOOST_PREDEF_DETAIL_ENDIAN_COMPAT_H
  8. #define BOOST_PREDEF_DETAIL_ENDIAN_COMPAT_H
  9. #pragma message("The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead")
  10. #include <boost/predef/other/endian.h>
  11. #if BOOST_ENDIAN_BIG_BYTE
  12. # define BOOST_BIG_ENDIAN
  13. # define BOOST_BYTE_ORDER 4321
  14. #endif
  15. #if BOOST_ENDIAN_LITTLE_BYTE
  16. # define BOOST_LITTLE_ENDIAN
  17. # define BOOST_BYTE_ORDER 1234
  18. #endif
  19. #if BOOST_ENDIAN_LITTLE_WORD
  20. # define BOOST_PDP_ENDIAN
  21. # define BOOST_BYTE_ORDER 2134
  22. #endif
  23. #endif