Line 0
Link Here
|
|
|
1 |
--- modules/core/src/tools/file/vpIoTools.cpp.orig 2020-02-22 01:06:07 UTC |
2 |
+++ modules/core/src/tools/file/vpIoTools.cpp |
3 |
@@ -85,7 +85,7 @@ |
4 |
|
5 |
// Detect endianness of the host machine |
6 |
// Reference: http://www.boost.org/doc/libs/1_36_0/boost/detail/endian.hpp |
7 |
-#if defined(__GLIBC__) || (defined(__GNUC__) && !defined(__llvm__) && !defined(__MINGW32__) && defined(__BYTE_ORDER__)) |
8 |
+#if defined(__GLIBC__) || (defined(__GNUC__) && !defined(__llvm__) && !defined(__MINGW32__) && defined(__BYTE_ORDER__) && defined(__linux__)) |
9 |
#include <endian.h> |
10 |
#if (__BYTE_ORDER == __LITTLE_ENDIAN) |
11 |
#define VISP_LITTLE_ENDIAN |