endian_compat.h 633 B

1234567891011121314151617181920212223242526
  1. /*
  2. Copyright Rene Rivera 2013
  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 MSGPACK_PREDEF_DETAIL_ENDIAN_COMPAT_H
  8. #define MSGPACK_PREDEF_DETAIL_ENDIAN_COMPAT_H
  9. #include <msgpack/predef/other/endian.h>
  10. #if MSGPACK_ENDIAN_BIG_BYTE
  11. # define MSGPACK_BIG_ENDIAN
  12. # define MSGPACK_BYTE_ORDER 4321
  13. #endif
  14. #if MSGPACK_ENDIAN_LITTLE_BYTE
  15. # define MSGPACK_LITTLE_ENDIAN
  16. # define MSGPACK_BYTE_ORDER 1234
  17. #endif
  18. #if MSGPACK_ENDIAN_LITTLE_WORD
  19. # define MSGPACK_PDP_ENDIAN
  20. # define MSGPACK_BYTE_ORDER 2134
  21. #endif
  22. #endif