Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/sentencepiece.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaku Kudo <taku@google.com>2020-10-13 20:07:59 +0300
committerTaku Kudo <taku@google.com>2020-10-13 20:07:59 +0300
commit45679f49bd5726208930382db09a9d0493ef002d (patch)
treef112f1f6aeff8485d72c7833084c9053c197cdd4
parente59c835e45a2e52cc60eaa0d7649994630178674 (diff)
changed macro big endian
-rw-r--r--src/util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index ebf92f9..94b78cf 100644
--- a/src/util.h
+++ b/src/util.h
@@ -36,12 +36,11 @@
#include <pthread.h>
#endif
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if !defined(__APPLE__) && BYTE_ORDER == __BIG_ENDIAN
#define IS_BIG_ENDIAN
#endif
namespace sentencepiece {
-
template <typename T>
std::ostream &operator<<(std::ostream &out, const std::vector<T> &v) {
for (const auto n : v) {