mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Enable _C_BOOL on non GNU C compilers
This commit is contained in:
parent
852ec7be7d
commit
40f88bc622
14 changed files with 30 additions and 30 deletions
|
@ -1528,7 +1528,7 @@ failure:
|
|||
*(double*)data = NSSwapBigDoubleToHost(nd);
|
||||
return;
|
||||
}
|
||||
#if __GNUC__ > 2 && defined(_C_BOOL)
|
||||
#if defined(_C_BOOL) && (!defined(__GNUC__) || __GNUC__ > 2)
|
||||
case _C_BOOL:
|
||||
{
|
||||
[self deserializeBytes: data
|
||||
|
@ -2841,7 +2841,7 @@ failure:
|
|||
[self appendBytes: &nd length: sizeof(NSSwappedDouble)];
|
||||
return;
|
||||
}
|
||||
#if __GNUC__ > 2 && defined(_C_BOOL)
|
||||
#if defined(_C_BOOL) && (!defined(__GNUC__) || __GNUC__ > 2)
|
||||
case _C_BOOL:
|
||||
[self appendBytes: data length: sizeof(_Bool)];
|
||||
return;
|
||||
|
@ -3320,7 +3320,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
*(double*)data = NSSwapBigDoubleToHost(nd);
|
||||
return;
|
||||
}
|
||||
#if __GNUC__ > 2 && defined(_C_BOOL)
|
||||
#if defined(_C_BOOL) && (!defined(__GNUC__) || __GNUC__ > 2)
|
||||
case _C_BOOL:
|
||||
{
|
||||
getBytes(data, bytes, sizeof(_Bool), length, cursor);
|
||||
|
@ -4201,7 +4201,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
(*appendImp)(self, appendSel, &nd, sizeof(NSSwappedDouble));
|
||||
return;
|
||||
}
|
||||
#if __GNUC__ > 2 && defined(_C_BOOL)
|
||||
#if defined(_C_BOOL) && (!defined(__GNUC__) || __GNUC__ > 2)
|
||||
case _C_BOOL:
|
||||
(*appendImp)(self, appendSel, data, sizeof(_Bool));
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue