mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
FIxes for solaris
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6834 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f04a31ac1b
commit
838cf297ac
7 changed files with 261 additions and 209 deletions
|
@ -2102,7 +2102,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
*cursor, length];
|
||||
}
|
||||
#if NEED_WORD_ALIGNMENT
|
||||
if ((*cursor % __alignof__(gsu16)) == 0)
|
||||
if ((*cursor % __alignof__(gsu16)) != 0)
|
||||
memcpy(&x, (bytes + *cursor), 2);
|
||||
else
|
||||
#endif
|
||||
|
@ -2122,7 +2122,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
*cursor, length];
|
||||
}
|
||||
#if NEED_WORD_ALIGNMENT
|
||||
if ((*cursor % __alignof__(gsu32)) == 0)
|
||||
if ((*cursor % __alignof__(gsu32)) != 0)
|
||||
memcpy(&x, (bytes + *cursor), 4);
|
||||
else
|
||||
#endif
|
||||
|
@ -2963,7 +2963,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
}
|
||||
*(gsu8*)(bytes + length++) = tag;
|
||||
#if NEED_WORD_ALIGNMENT
|
||||
if ((length % __alignof__(gsu16)) == 0)
|
||||
if ((length % __alignof__(gsu16)) != 0)
|
||||
{
|
||||
x = GSSwapHostI16ToBig(x);
|
||||
memcpy((bytes + length), &x, 2);
|
||||
|
@ -2984,7 +2984,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
}
|
||||
*(gsu8*)(bytes + length++) = tag;
|
||||
#if NEED_WORD_ALIGNMENT
|
||||
if ((length % __alignof__(gsu32)) == 0)
|
||||
if ((length % __alignof__(gsu32)) != 0)
|
||||
{
|
||||
x = GSSwapHostI32ToBig(x);
|
||||
memcpy((bytes + length), &x, 4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue