summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-08-17 21:04:21 +0800
committerErik Kundiman <erik@megapahit.org>2023-08-17 21:04:21 +0800
commiteccb10575d3b6dc841cf4bf07db29833174d1c69 (patch)
tree896625c5a391cfea4c7e9089546e854d628b2db9 /indra
parent84b72f12d42e08fe989752ce36e1972bb11c8d70 (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')
-rw-r--r--indra/llwindow/llkeyboardsdl.h3
-rw-r--r--indra/llwindow/llwindowsdl.h3
2 files changed, 6 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
diff --git a/indra/llwindow/llwindowsdl.h b/indra/llwindow/llwindowsdl.h
index 992f9c986c..86e238282b 100644
--- a/indra/llwindow/llwindowsdl.h
+++ b/indra/llwindow/llwindowsdl.h
@@ -32,6 +32,9 @@
#include "llwindow.h"
#include "lltimer.h"
+#if !defined(__i386__) && !defined(__x86_64__)
+#define SDL_DISABLE_IMMINTRIN_H
+#endif
#include "SDL2/SDL.h"
#include "SDL2/SDL_endian.h"