mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
(BITSPERBYTE): Define if not defined and on NeXT.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1513 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a0dc4d2812
commit
4300f0e9a2
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@
|
|||
/* The value by which we multiply a float or double in order to bring
|
||||
mantissa digits to the left-hand-side of the decimal point, so that
|
||||
we can extra them by assigning the float or double to an int. */
|
||||
#if !defined(BITSPERBYTE) && defined(NeXT)
|
||||
#include <mach/vm_param.h>
|
||||
#define BITSPERBYTE BYTE_SIZE
|
||||
#endif
|
||||
#define FLOAT_FACTOR ((double)(1 << ((sizeof(int)*BITSPERBYTE)-2)))
|
||||
|
||||
@implementation BinaryCStream
|
||||
|
|
Loading…
Reference in a new issue