From eccb10575d3b6dc841cf4bf07db29833174d1c69 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Thu, 17 Aug 2023 21:04:21 +0800 Subject: Make SDL exclude immintrin.h when not on Intel I don't know why SDL2 isn't defining the macro by default when it's been compiled and installed on an Arm environment, that it has to be manually defined. I may be missing something here.. --- indra/llwindow/llkeyboardsdl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/llwindow/llkeyboardsdl.h') diff --git a/indra/llwindow/llkeyboardsdl.h b/indra/llwindow/llkeyboardsdl.h index 2b1ac5af2b..43f8e1ccb4 100644 --- a/indra/llwindow/llkeyboardsdl.h +++ b/indra/llwindow/llkeyboardsdl.h @@ -28,6 +28,9 @@ #define LL_LLKEYBOARDSDL_H #include "llkeyboard.h" +#if !defined(__i386__) && !defined(__x86_64__) +#define SDL_DISABLE_IMMINTRIN_H +#endif #include "SDL2/SDL.h" class LLKeyboardSDL : public LLKeyboard -- cgit v1.2.3