pack_decl.hpp 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // MessagePack for C++ serializing routine
  3. //
  4. // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // (See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #ifndef MSGPACK_V2_PACK_DECL_HPP
  11. #define MSGPACK_V2_PACK_DECL_HPP
  12. #include "msgpack/v1/pack_decl.hpp"
  13. namespace msgpack {
  14. /// @cond
  15. MSGPACK_API_VERSION_NAMESPACE(v2) {
  16. /// @endcond
  17. using v1::packer;
  18. using v1::pack;
  19. #if MSGPACK_ENDIAN_LITTLE_BYTE
  20. using v1::take8_8;
  21. using v1::take8_16;
  22. using v1::take8_32;
  23. using v1::take8_64;
  24. #elif MSGPACK_ENDIAN_BIG_BYTE
  25. using v1::take8_8;
  26. using v1::take8_16;
  27. using v1::take8_32;
  28. using v1::take8_64;
  29. #else
  30. #error msgpack-c supports only big endian and little endian
  31. #endif
  32. /// @cond
  33. } // MSGPACK_API_VERSION_NAMESPACE(v2)
  34. /// @endcond
  35. } // namespace msgpack
  36. #endif // MSGPACK_V2_PACK_DECL_HPP