cmake+video: always use altivec.h header for detection + introduce SDL_ENABLE_ALTIVEC

This commit is contained in:
Anonymous Maarten authored and Anonymous Maarten committed 2023-03-15 14:54:20 +01:00
1 parent 684709a5b6
commit d27db3defa
7 files changed
+14 -20

No files matched your search

+2 -2
View File
@@ -69,8 +69,8 @@ _m_prefetch(void *__P)
# include <arm_neon.h>
#endif
#else
/* altivec.h redefining bool causes a number of problems, see bugs 3993 and 4392, so you need to explicitly define SDL_ENABLE_ALTIVEC_H to have it included. */
#if defined(HAVE_ALTIVEC_H) && defined(__ALTIVEC__) && !defined(__APPLE_ALTIVEC__) && defined(SDL_ENABLE_ALTIVEC_H)
/* altivec.h redefining bool causes a number of problems, see bugs 3993 and 4392, so you need to explicitly define SDL_ENABLE_ALTIVEC to have it included. */
#if defined(__ALTIVEC__) && defined(SDL_ENABLE_ALTIVEC)
#include <altivec.h>
#endif
#if !defined(SDL_DISABLE_NEON)
@@ -215,7 +215,6 @@
#cmakedefine HAVE_FLOAT_H 1
#endif /* HAVE_LIBC */
#cmakedefine HAVE_ALTIVEC_H 1
#cmakedefine HAVE_DBUS_DBUS_H 1
#cmakedefine HAVE_FCITX 1
#cmakedefine HAVE_IBUS_IBUS_H 1