diff options
author | Robert Nagy <robert@openbsd.org> | 2010-11-04 09:25:04 +0100 |
---|---|---|
committer | Robert Nagy <robert@openbsd.org> | 2010-11-08 12:32:28 +0100 |
commit | 5a6ca35bd6df67085bc84d0f20612a94b6c6480b (patch) | |
tree | 793f601e3927e5d8a2198fbaa5437fa351aeca01 /cppu/source | |
parent | 43738da82e783ab89501c7a240eba1bd438a4193 (diff) |
Patches for ure, neeed by OpenBSD
Adds the necessary distinctions in the system abstraction layers.
Diffstat (limited to 'cppu/source')
-rw-r--r-- | cppu/source/uno/data.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx index 77243fdcc..5a8de8a6c 100644 --- a/cppu/source/uno/data.cxx +++ b/cppu/source/uno/data.cxx @@ -360,7 +360,8 @@ sal_Bool SAL_CALL uno_type_isAssignableFromData( #endif #if defined(INTEL) \ - && (defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD) || defined(OS2)) || defined(MACOSX) \ + && (defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD) || defined(OS2) || \ + defined(OPENBSD)) || defined(MACOSX) \ || defined(__SUNPRO_CC) && defined(SOLARIS)) #define MAX_ALIGNMENT_4 #endif @@ -373,7 +374,8 @@ sal_Bool SAL_CALL uno_type_isAssignableFromData( if (OFFSET_OF(s, m) != n) { fprintf( stderr, "### OFFSET_OF(" #s ", " #m ") = %d instead of expected %d!!!\n", OFFSET_OF(s, m), n ); abort(); } #if OSL_DEBUG_LEVEL > 1 -#if defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD)) && (defined(INTEL) || defined(POWERPC) || defined(X86_64) || defined(S390)) +#if defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD) || defined(OPENBSD)) && \ + (defined(INTEL) || defined(POWERPC) || defined(X86_64) || defined(S390)) #define BINTEST_VERIFYSIZE( s, n ) \ fprintf( stderr, "> sizeof(" #s ") = %d; __alignof__ (" #s ") = %d\n", sizeof(s), __alignof__ (s) ); \ if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %d instead of expected %d!!!\n", sizeof(s), n ); abort(); } |