Added enforcing endian functionality.

This commit is contained in:
Takatoshi Kondo
2018-09-08 20:06:00 +09:00
parent 11cfeeec92
commit f6ddc9b85a

View File

@@ -10,8 +10,6 @@
#ifndef MSGPACK_SYSDEP_H
#define MSGPACK_SYSDEP_H
#include <msgpack/predef.h>
#include <stdlib.h>
#include <stddef.h>
@@ -86,6 +84,10 @@
#endif
#if !defined(MSGPACK_ENDIAN_LITTLE_BYTE) && !defined(MSGPACK_ENDIAN_BIG_BYTE)
#include <msgpack/predef/other/endian.h>
#endif // !defined(MSGPACK_ENDIAN_LITTLE_BYTE) && !defined(MSGPACK_ENDIAN_BIG_BYTE)
#if MSGPACK_ENDIAN_LITTLE_BYTE
# if defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__)