aboutsummaryrefslogtreecommitdiff
path: root/addons/library.xbmc.addon/libXBMC_addon.h
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2015-12-21 11:11:12 +0100
committerMemphiz <memphis@machzwo.de>2016-01-10 13:41:04 +0100
commit8c0cd21b0e01b03a9d3143d90d22333a5bf601b2 (patch)
tree471545286eaf3bc883570cda5c20b88a8cf67d73 /addons/library.xbmc.addon/libXBMC_addon.h
parent927877ec820febeb4c66f31fc535be3391803b90 (diff)
[library.xbmc.addon] - make it ios/arm64 aware
Diffstat (limited to 'addons/library.xbmc.addon/libXBMC_addon.h')
-rw-r--r--addons/library.xbmc.addon/libXBMC_addon.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/addons/library.xbmc.addon/libXBMC_addon.h b/addons/library.xbmc.addon/libXBMC_addon.h
index 06f61bab56..139d994cc3 100644
--- a/addons/library.xbmc.addon/libXBMC_addon.h
+++ b/addons/library.xbmc.addon/libXBMC_addon.h
@@ -42,13 +42,12 @@ typedef intptr_t ssize_t;
#define ADDON_DLL "\\library.xbmc.addon\\libXBMC_addon" ADDON_HELPER_EXT
#define ADDON_HELPER_EXT ".dll"
#else
+// the ADDON_HELPER_ARCH is the platform dependend name which is used
+// as part of the name of dynamic addon libraries. It has to match the
+// strings which are set in configure.ac for the "ARCH" variable.
#if defined(__APPLE__) // osx
-#if defined(__POWERPC__)
-#define ADDON_HELPER_ARCH "powerpc-osx"
-#elif defined(__arm__)
+#if defined(__arm__) || defined(__aarch64__)
#define ADDON_HELPER_ARCH "arm-osx"
-#elif defined(__x86_64__)
-#define ADDON_HELPER_ARCH "x86-osx"
#else
#define ADDON_HELPER_ARCH "x86-osx"
#endif