From a8f19ca300794c7d270871f947838ea524bff8ed Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 13 Mar 2012 22:48:47 +0200 Subject: Use MAX_ALIGNMENT_4 also for iOS --- cppu/source/uno/data.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'cppu') diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx index 1336a9b9132b..cdedb1e7f8bf 100644 --- a/cppu/source/uno/data.cxx +++ b/cppu/source/uno/data.cxx @@ -356,10 +356,13 @@ CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_isAssignableFromData( #pragma pack(push, 8) #endif -#if defined(INTEL) \ - && (defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD) \ - || defined(NETBSD) || defined(OPENBSD)) || defined(MACOSX) || defined(DRAGONFLY) \ - || defined(__SUNPRO_CC) && defined(SOLARIS)) +// Why hardcode like this instead of using the (generated) +// ? + +#if (defined(INTEL) \ + && (defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD)) \ + || defined(MACOSX) || defined(DRAGONFLY) || (defined(__SUNPRO_CC) && defined(SOLARIS)))) \ + || defined(IOS) #define MAX_ALIGNMENT_4 #endif -- cgit