MessagePack for C
Loading...
Searching...
No Matches
endian_compat.h
Go to the documentation of this file.
1/*
2Copyright Rene Rivera 2013
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef MSGPACK_PREDEF_DETAIL_ENDIAN_COMPAT_H
9#define MSGPACK_PREDEF_DETAIL_ENDIAN_COMPAT_H
10
12
13#if MSGPACK_ENDIAN_BIG_BYTE
14# define MSGPACK_BIG_ENDIAN
15# define MSGPACK_BYTE_ORDER 4321
16#endif
17#if MSGPACK_ENDIAN_LITTLE_BYTE
18# define MSGPACK_LITTLE_ENDIAN
19# define MSGPACK_BYTE_ORDER 1234
20#endif
21#if MSGPACK_ENDIAN_LITTLE_WORD
22# define MSGPACK_PDP_ENDIAN
23# define MSGPACK_BYTE_ORDER 2134
24#endif
25
26#endif