summaryrefslogtreecommitdiff
path: root/public/include
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@ubuntu.com>2018-03-18 20:52:40 -0400
committerHubert Figuière <hub@figuiere.net>2018-03-27 19:01:39 -0400
commitfe634675dd81e8c66cfe80a2c5c8dea330d0446d (patch)
tree8067d560876320bd453cc1ca7701fc2bdeba7f29 /public/include
parentf08c49614a1b4786eeab89342c1a9792397bdd6c (diff)
Bug 105580 - use alignment-safe copy on ARM on Linux
Detect ARM target arch and define XMP_IOS_ARM to enable specific memory handling in the XMP SDK code. Signed-off-by: Hubert Figuière <hub@figuiere.net>
Diffstat (limited to 'public/include')
-rw-r--r--public/include/XMP_Environment.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/include/XMP_Environment.h b/public/include/XMP_Environment.h
index 4a88b0b..55b4f7b 100644
--- a/public/include/XMP_Environment.h
+++ b/public/include/XMP_Environment.h
@@ -158,6 +158,9 @@
#define XMP_HELPER_DLL_EXPORT __attribute__ ((visibility ("default")))
#define XMP_HELPER_DLL_PRIVATE __attribute__ ((visibility ("hidden")))
#define APICALL
+ #ifdef __arm__
+ #define XMP_IOS_ARM 1
+ #endif
#endif
// =================================================================================================