From 45679f49bd5726208930382db09a9d0493ef002d Mon Sep 17 00:00:00 2001 From: Taku Kudo Date: Wed, 14 Oct 2020 02:07:59 +0900 Subject: changed macro big endian --- src/util.h | 3 +-- 1 file changed, 1 insertion(+), 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 #endif -#if __BYTE_ORDER == __BIG_ENDIAN +#if !defined(__APPLE__) && BYTE_ORDER == __BIG_ENDIAN #define IS_BIG_ENDIAN #endif namespace sentencepiece { - template std::ostream &operator<<(std::ostream &out, const std::vector &v) { for (const auto n : v) { -- cgit v1.2.3