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:
-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) {