From: Sébastien Villemot Date: Mon, 20 Dec 2021 13:15:18 +0000 (+0000) Subject: Fix endianness detection on ppc64* X-Git-Tag: archive/raspbian/3.10.3-12+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ddb8ab69425155401b3dc36e47db19a56fa80d3e;p=atlas.git Fix endianness detection on ppc64* Forwarded: https://sourceforge.net/p/math-atlas/patches/79/ Applied-Upstream: 3.10.4 Last-Update: 2017-08-25 The __ORDER_LITTLE_ENDIAN__ macro is defined even on big endian systems. Last-Update: 2017-08-25 Gbp-Pq: Name ppc64-endianness.patch --- diff --git a/CONFIG/src/SpewMakeInc.c b/CONFIG/src/SpewMakeInc.c index edcc2f1..dcd1ac1 100644 --- a/CONFIG/src/SpewMakeInc.c +++ b/CONFIG/src/SpewMakeInc.c @@ -557,7 +557,7 @@ int main(int nargs, char **args) fprintf(fpout, "# -------------------------------------------------\n"); fprintf(fpout, " ARCH = %s", machnam[mach]); fprintf(fpout, "%d", ptrbits); - #if defined(__powerpc64__) && defined(__ORDER_LITTLE_ENDIAN__) + #if defined(__powerpc64__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) fprintf(fpout, "LE"); #endif if (ISAX)