diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-08-17 21:04:21 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-08-17 21:04:21 +0800 |
commit | eccb10575d3b6dc841cf4bf07db29833174d1c69 (patch) | |
tree | 896625c5a391cfea4c7e9089546e854d628b2db9 /indra/llwindow/llkeyboardsdl.h | |
parent | 84b72f12d42e08fe989752ce36e1972bb11c8d70 (diff) |
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..
Diffstat (limited to 'indra/llwindow/llkeyboardsdl.h')
-rw-r--r-- | indra/llwindow/llkeyboardsdl.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |