Skip to content

Commit 2163887

Browse files
committed
Define illegal_instruction() when it will be actually used
(cherry picked from commit 29d2116)
1 parent c0f78de commit 2163887

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cpuinfo/SDL_cpuinfo.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@
127127
#define CPU_CFG2_LSX (1 << 6)
128128
#define CPU_CFG2_LASX (1 << 7)
129129

130-
#if defined(SDL_ALTIVEC_BLITTERS) && defined(HAVE_SETJMP) && !defined(__MACOSX__) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && (defined(__LINUX__) && !defined(HAVE_GETAUXVAL))
130+
#if !defined(SDL_CPUINFO_DISABLED) && \
131+
!((defined(__MACOSX__) && (defined(__ppc__) || defined(__ppc64__))) || (defined(__OpenBSD__) && defined(__powerpc__))) && \
132+
!(defined(__FreeBSD__) && defined(__powerpc__)) && \
133+
!(defined(__LINUX__) && defined(__powerpc__) && defined(HAVE_GETAUXVAL)) && \
134+
defined(SDL_ALTIVEC_BLITTERS) && defined(HAVE_SETJMP)
131135
/* This is the brute force way of detecting instruction sets...
132136
the idea is borrowed from the libmpeg2 library - thanks!
133137
*/

0 commit comments

Comments
 (0)