From 4e2d40e592b11380db10ff72970f2ed89206766a Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Thu, 27 Apr 2017 13:01:25 +0200 Subject: Add support for arc This commit fixes Kodi build with a buildroot toolchain for arc. Signed-off-by: Bernd Kuhls --- xbmc/cores/DllLoader/DllLoader.h | 3 ++- xbmc/cores/DllLoader/ldt_keeper.c | 3 ++- xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h | 3 ++- xbmc/threads/Atomics.cpp | 3 ++- 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 -- cgit v1.2.3