Moved include byteswap.h to sysdep.h.

When compiling on Mac, byteswap.h is not included.
This commit is contained in:
Takatoshi Kondo
2014-10-12 01:22:10 +09:00
parent cd03ab62f8
commit 4a292193f2
2 changed files with 6 additions and 2 deletions

View File

@@ -68,7 +68,12 @@ typedef unsigned int _msgpack_atomic_counter_t;
#endif
#else
#include <arpa/inet.h> /* __BYTE_ORDER */
# if !defined(__APPLE__)
# include <byteswap.h>
# endif
#endif
#if !defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)
@@ -185,4 +190,3 @@ typedef unsigned int _msgpack_atomic_counter_t;
#endif
#endif /* msgpack/sysdep.h */

View File

@@ -21,10 +21,10 @@
#include "zone.hpp"
#include "unpack_define.h"
#include "cpp_config.hpp"
#include "sysdep.h"
#include <memory>
#include <stdexcept>
#include <byteswap.h>