Fix -Wundef warnings due to use of unguarded SDL_SSE4_2_INTRINSICS

This commit is contained in:
Anonymous Maarten
2023-03-27 18:56:54 +02:00
parent 344db1b251
commit 54c04fb5ae

View File

@@ -249,7 +249,7 @@ SDL_TARGETING("sse4.1") static void kernel_ints_mul_sse4_1(Sint32 *dest, const S
}
#endif
#if SDL_SSE4_2_INTRINSICS
#if defined(SDL_SSE4_2_INTRINSICS)
SDL_TARGETING("sse4.2") static Uint32 calculate_crc32c_sse4_2(const char *text) {
Uint32 crc32c = ~0;
size_t len = SDL_strlen(text);
@@ -504,7 +504,7 @@ static int intrinsics_testSSE4_2(void *arg)
{
if (SDL_HasSSE42()) {
SDLTest_AssertCheck(SDL_TRUE, "CPU of test machine has SSE4.2 support.");
#if SDL_SSE4_2_INTRINSICS
#if defined(SDL_SSE4_2_INTRINSICS)
{
struct {
const char *input;