Skip to content

Commit

Permalink
Merge pull request #617 from mhsmith/master
Browse files Browse the repository at this point in the history
Add missing #include for BYTE_ORDER
  • Loading branch information
taku910 authored Jan 12, 2021
2 parents d9a0892 + 4bc9ae0 commit ba7e11a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@
#include <pthread.h>
#endif

#if !defined(__APPLE__) && !defined(_WIN32) && BYTE_ORDER == __BIG_ENDIAN
#if !defined(__APPLE__) && !defined(_WIN32)
#include <endian.h>
#if defined(BYTE_ORDER) && defined(__BIG_ENDIAN) && BYTE_ORDER == __BIG_ENDIAN
#define IS_BIG_ENDIAN
#endif
#endif

namespace sentencepiece {
template <typename T>
Expand Down

0 comments on commit ba7e11a

Please sign in to comment.