From 54c04fb5ae77c2c082e299b7cf4db6a48627f651 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 27 Mar 2023 18:56:54 +0200 Subject: [PATCH] Fix -Wundef warnings due to use of unguarded SDL_SSE4_2_INTRINSICS --- test/testautomation_intrinsics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testautomation_intrinsics.c b/test/testautomation_intrinsics.c index 2cbc4d63eb..f1b69fe172 100644 --- a/test/testautomation_intrinsics.c +++ b/test/testautomation_intrinsics.c @@ -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;