diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2017-04-27 13:01:25 +0200 |
---|---|---|
committer | Bernd Kuhls <bernd.kuhls@t-online.de> | 2017-04-27 17:11:23 +0200 |
commit | 4e2d40e592b11380db10ff72970f2ed89206766a (patch) | |
tree | b3c9ba1e65aa1b8aeab9066dcf57cc3533f8c6e2 | |
parent | 72ccf12d7760da4e77e70ae4cfed5caab986e8a9 (diff) |
Add support for arc
This commit fixes Kodi build with a buildroot toolchain for arc.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
-rw-r--r-- | xbmc/cores/DllLoader/DllLoader.h | 3 | ||||
-rw-r--r-- | xbmc/cores/DllLoader/ldt_keeper.c | 3 | ||||
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h | 3 | ||||
-rw-r--r-- | xbmc/threads/Atomics.cpp | 3 | ||||
-rw-r--r-- | xbmc/utils/MathUtils.h | 3 |
5 files changed, 10 insertions, 5 deletions
diff --git a/xbmc/cores/DllLoader/DllLoader.h b/xbmc/cores/DllLoader/DllLoader.h index 1e51014f1a..5618445d51 100644 --- a/xbmc/cores/DllLoader/DllLoader.h +++ b/xbmc/cores/DllLoader/DllLoader.h @@ -29,7 +29,8 @@ !defined(__aarch64__) && \ !defined(__mips__) && \ !defined(__SH4__) && \ - !defined(__sparc__) + !defined(__sparc__) && \ + !defined(__arc__) #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 6aec5f8e67..a10acdb967 100644 --- a/xbmc/cores/DllLoader/ldt_keeper.c +++ b/xbmc/cores/DllLoader/ldt_keeper.c @@ -25,7 +25,8 @@ !defined(__aarch64__) && \ !defined(__mips__) && \ !defined(__SH4__) && \ - !defined(__sparc__) + !defined(__sparc__) && \ + !defined(__arc__) #include "ldt_keeper.h" diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h b/xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h index 67da6068b6..b0cd76da45 100644 --- a/xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h +++ b/xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h @@ -300,7 +300,8 @@ inline int NP2( unsigned x ) { !defined(__aarch64__) && \ !defined(__mips__) && \ !defined(__SH4__) && \ - !defined(__sparc__) + !defined(__sparc__) && \ + !defined(__arc__) // 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 90aabf947b..0c5b13ae73 100644 --- a/xbmc/threads/Atomics.cpp +++ b/xbmc/threads/Atomics.cpp @@ -111,7 +111,8 @@ long long cas2(volatile long long* pAddr, long long expectedVal, long long swapV defined(__arm__) || \ defined(__aarch64__) || \ defined(__SH4__) || \ - defined(__sparc__) + defined(__sparc__) || \ + defined(__arc__) // 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 873fbb8b0f..b79be9e3d6 100644 --- a/xbmc/utils/MathUtils.h +++ b/xbmc/utils/MathUtils.h @@ -38,7 +38,8 @@ defined(__arm__) || \ defined(__aarch64__) || \ defined(__SH4__) || \ - defined(__sparc__) + defined(__sparc__) || \ + defined(__arc__) #define DISABLE_MATHUTILS_ASM_ROUND_INT #endif |