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

This commit is contained in:
Anonymous Maarten
2023-03-15 04:56:55 +01:00
committed by Anonymous Maarten
parent 684709a5b6
commit d27db3defa
7 changed files with 14 additions and 20 deletions

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)

View File

@@ -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