Commit | Line | Data |
---|---|---|
116a02e3 JG |
1 | /* |
2 | * Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: BSL-1.0 | |
5 | * | |
6 | */ | |
7 | ||
8 | #ifndef MSGPACK_LTTNG_CONFIG_H | |
9 | #define MSGPACK_LTTNG_CONFIG_H | |
10 | ||
030ea321 | 11 | #include <limits.h> |
c9e313bc | 12 | #include <common/compat/endian.hpp> |
116a02e3 | 13 | |
6b5a354b | 14 | #if BYTE_ORDER == LITTLE_ENDIAN |
116a02e3 | 15 | #define MSGPACK_ENDIAN_LITTLE_BYTE 1 |
0c07860d | 16 | #define MSGPACK_ENDIAN_BIG_BYTE 0 |
6b5a354b | 17 | #elif BYTE_ORDER == BIG_ENDIAN |
0c07860d | 18 | #define MSGPACK_ENDIAN_LITTLE_BYTE 0 |
116a02e3 JG |
19 | #define MSGPACK_ENDIAN_BIG_BYTE 1 |
20 | #endif | |
21 | ||
22 | #endif |