mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 06:21:09 +00:00
cmake+video: always use altivec.h header for detection + introduce SDL_ENABLE_ALTIVEC
This commit is contained in:
committed by
Anonymous Maarten
parent
684709a5b6
commit
d27db3defa
@@ -186,6 +186,10 @@
|
||||
#include <SDL3/SDL.h>
|
||||
#include <SDL3/SDL_intrin.h>
|
||||
|
||||
#if defined(__ALTIVEC__) && defined(SDL_ENABLE_ALTIVEC)
|
||||
#define HAVE_ALTIVEC_INTRINSICS 1
|
||||
#endif
|
||||
|
||||
#if defined(__ARM_NEON) && !defined(SDL_DISABLE_NEON)
|
||||
#define HAVE_NEON_INTRINSICS 1
|
||||
#endif
|
||||
|
||||
@@ -46,9 +46,6 @@ enum blit_features
|
||||
};
|
||||
|
||||
#if SDL_ALTIVEC_BLITTERS
|
||||
#ifdef HAVE_ALTIVEC_H
|
||||
#include <altivec.h>
|
||||
#endif
|
||||
#ifdef __MACOS__
|
||||
#include <sys/sysctl.h>
|
||||
static size_t
|
||||
|
||||
Reference in New Issue
Block a user