Merge pull request #138 from redboltz/move_byteswap

Moved include byteswap.h to sysdep.h.
This commit is contained in:
Takatoshi Kondo 2014-10-19 19:42:38 +09:00
commit e21e3245db
2 changed files with 6 additions and 2 deletions

View File

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

View File

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