mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
protect from both old runtime and old compiler
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39042 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f6271e8e48
commit
bf5038e2ac
14 changed files with 29 additions and 29 deletions
|
@ -1385,7 +1385,7 @@ failure:
|
|||
*(double*)data = NSSwapBigDoubleToHost(nd);
|
||||
return;
|
||||
}
|
||||
#ifdef _C_BOOL
|
||||
#if __GNUC__ > 2 && defined(_C_BOOL)
|
||||
case _C_BOOL:
|
||||
{
|
||||
[self deserializeBytes: data
|
||||
|
@ -2672,7 +2672,7 @@ failure:
|
|||
[self appendBytes: &nd length: sizeof(NSSwappedDouble)];
|
||||
return;
|
||||
}
|
||||
#ifdef _C_BOOL
|
||||
#if __GNUC__ > 2 && defined(_C_BOOL)
|
||||
case _C_BOOL:
|
||||
[self appendBytes: data length: sizeof(_Bool)];
|
||||
return;
|
||||
|
@ -3159,7 +3159,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
*(double*)data = NSSwapBigDoubleToHost(nd);
|
||||
return;
|
||||
}
|
||||
#ifdef _C_BOOL
|
||||
#if __GNUC__ > 2 && defined(_C_BOOL)
|
||||
case _C_BOOL:
|
||||
{
|
||||
getBytes(data, bytes, sizeof(_Bool), length, cursor);
|
||||
|
@ -4000,7 +4000,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
(*appendImp)(self, appendSel, &nd, sizeof(NSSwappedDouble));
|
||||
return;
|
||||
}
|
||||
#ifdef _C_BOOL
|
||||
#if __GNUC__ > 2 && defined(_C_BOOL)
|
||||
case _C_BOOL:
|
||||
(*appendImp)(self, appendSel, data, sizeof(_Bool));
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue