mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
(BITSPERBYTE): If it hasn't been defined after #include's guess that
it's 8. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2012 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b520b58351
commit
fea767affa
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Implementation of GNU Objective-C binary stream object for use serializing
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
Written: Jan 1996
|
||||
|
@ -54,6 +54,8 @@
|
|||
#if !defined(BITSPERBYTE) && defined(NeXT)
|
||||
#include <mach/vm_param.h>
|
||||
#define BITSPERBYTE BYTE_SIZE
|
||||
#elif !defined(BITSPERBYTE)
|
||||
#define BITSPERBYTE 8 /* a safe guess? */
|
||||
#endif
|
||||
#define FLOAT_FACTOR ((double)(1 << ((sizeof(int)*BITSPERBYTE)-2)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue