From 0a06af1aa66ad999c2e022b86768fdb66769f58a Mon Sep 17 00:00:00 2001 From: lif Date: Tue, 21 Apr 2020 18:58:58 -0700 Subject: [PATCH] Use consistent conditionals for big endian detection (not all PowerPC hosts are big-endian!) --- include/mgba/internal/arm/arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mgba/internal/arm/arm.h b/include/mgba/internal/arm/arm.h index a1f040c8b..b3268910a 100644 --- a/include/mgba/internal/arm/arm.h +++ b/include/mgba/internal/arm/arm.h @@ -70,7 +70,7 @@ struct ARMCore; union PSR { struct { -#if defined(__POWERPC__) || defined(__PPC__) +#if defined(__BIG_ENDIAN__) unsigned n : 1; unsigned z : 1; unsigned c : 1;