aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/cores/DllLoader/DllLoader.h10
-rw-r--r--xbmc/cores/DllLoader/ldt_keeper.c10
-rw-r--r--xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h11
-rw-r--r--xbmc/threads/Atomics.cpp9
-rw-r--r--xbmc/utils/MathUtils.h6
5 files changed, 41 insertions, 5 deletions
diff --git a/xbmc/cores/DllLoader/DllLoader.h b/xbmc/cores/DllLoader/DllLoader.h
index eb3c54c96b..26b41e258b 100644
--- a/xbmc/cores/DllLoader/DllLoader.h
+++ b/xbmc/cores/DllLoader/DllLoader.h
@@ -23,7 +23,15 @@
#include "coffldr.h"
#include "LibraryLoader.h"
-#if defined(__linux__) && !defined(__powerpc__) && !defined(__arm__) && !defined(__aarch64__) && !defined(__mips__)
+#if defined(__linux__) && \
+ !defined(__powerpc__) && \
+ !defined(__arm__) && \
+ !defined(__aarch64__) && \
+ !defined(__mips__) && \
+ !defined(__SH4__) && \
+ !defined(__sparc__) && \
+ !defined(__arc__) && \
+ !defined(__xtensa__)
#define USE_LDT_KEEPER
#include "ldt_keeper.h"
#endif
diff --git a/xbmc/cores/DllLoader/ldt_keeper.c b/xbmc/cores/DllLoader/ldt_keeper.c
index 3fe68541e6..83fd023196 100644
--- a/xbmc/cores/DllLoader/ldt_keeper.c
+++ b/xbmc/cores/DllLoader/ldt_keeper.c
@@ -19,7 +19,15 @@
*/
//#ifndef __powerpc__
-#if !defined(__powerpc__) && !defined(__ppc__) && !defined(__arm__) && !defined(__aarch64__) && !defined(__mips__)
+#if !defined(__powerpc__) && \
+ !defined(__ppc__) && \
+ !defined(__arm__) && \
+ !defined(__aarch64__) && \
+ !defined(__mips__) && \
+ !defined(__SH4__) && \
+ !defined(__sparc__) && \
+ !defined(__arc__) && \
+ !defined(__xtensa__)
#include "ldt_keeper.h"
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h b/xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h
index ce3afe985b..32f8bc45c9 100644
--- a/xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h
+++ b/xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h
@@ -293,7 +293,16 @@ protected:
inline int NP2( unsigned x ) {
-#if defined(TARGET_POSIX) && !defined(__POWERPC__) && !defined(__PPC__) && !defined(__arm__) && !defined(__aarch64__) && !defined(__mips__)
+#if defined(TARGET_POSIX) && \
+ !defined(__POWERPC__) && \
+ !defined(__PPC__) && \
+ !defined(__arm__) && \
+ !defined(__aarch64__) && \
+ !defined(__mips__) && \
+ !defined(__SH4__) && \
+ !defined(__sparc__) && \
+ !defined(__arc__) && \
+ !defined(__xtensa__)
// If there are any issues compiling this, just append a ' && 0'
// to the above to make it '#if defined(TARGET_POSIX) && 0'
diff --git a/xbmc/threads/Atomics.cpp b/xbmc/threads/Atomics.cpp
index ecba3f1081..7085a13882 100644
--- a/xbmc/threads/Atomics.cpp
+++ b/xbmc/threads/Atomics.cpp
@@ -106,7 +106,14 @@ long cas(volatile long *pAddr, long expectedVal, long swapVal)
///////////////////////////////////////////////////////////////////////////
long long cas2(volatile long long* pAddr, long long expectedVal, long long swapVal)
{
-#if defined(__ppc__) || defined(__powerpc__) || defined(__arm__) || defined(__aarch64__)// PowerPC and ARM
+#if defined(__ppc__) || \
+ defined(__powerpc__) || \
+ defined(__arm__) || \
+ defined(__aarch64__) || \
+ defined(__SH4__) || \
+ defined(__sparc__) || \
+ defined(__arc__) || \
+ defined(__xtensa__)
// Not available/required
// Hack to allow compilation
throw "cas2 is not implemented";
diff --git a/xbmc/utils/MathUtils.h b/xbmc/utils/MathUtils.h
index 9ec1edba87..556787ef82 100644
--- a/xbmc/utils/MathUtils.h
+++ b/xbmc/utils/MathUtils.h
@@ -36,7 +36,11 @@
defined(__powerpc__) || \
defined(__mips__) || \
defined(__arm__) || \
- defined(__aarch64__)
+ defined(__aarch64__) || \
+ defined(__SH4__) || \
+ defined(__sparc__) || \
+ defined(__arc__) || \
+ defined(__xtensa__)
#define DISABLE_MATHUTILS_ASM_ROUND_INT
#endif