Add symbols for quads to limits and endian and protect endian from mult.
inclusion.
This commit is contained in:
parent
e2d8e0cdaf
commit
0c925f177c
|
@ -33,7 +33,7 @@
|
|||
|
||||
/*
|
||||
* from: @(#)endian.h 7.7 (Berkeley) 4/3/91
|
||||
* $Id: endian.h,v 1.2 1993/11/29 00:38:01 briggs Exp $
|
||||
* $Id: endian.h,v 1.3 1993/12/02 15:02:50 briggs Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -41,6 +41,11 @@
|
|||
BG 05/24/92,17:10:58
|
||||
I don't think we need to change this very much.
|
||||
*/
|
||||
#ifndef _MACHINE_ENDIAN_H_
|
||||
#define _MACHINE_ENDIAN_H_
|
||||
|
||||
#define _QUAD_HIGHWORD 0
|
||||
#define _QUAD_LOWWORD 1
|
||||
|
||||
/*
|
||||
* Definitions for byte order, according to byte significance from low
|
||||
|
@ -121,3 +126,5 @@ __END_DECLS
|
|||
#define HTONL(x) (x) = htonl((u_long)x)
|
||||
#define HTONS(x) (x) = htons((u_short)x)
|
||||
#endif
|
||||
|
||||
#endif /* _MACHINE_ENDIAN_H_ */
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)limits.h 7.2 (Berkeley) 6/28/90
|
||||
* $Id: limits.h,v 1.3 1993/12/02 07:40:14 briggs Exp $
|
||||
* $Id: limits.h,v 1.4 1993/12/02 15:02:51 briggs Exp $
|
||||
*/
|
||||
|
||||
#define CHAR_BIT 8 /* number of bits in a char */
|
||||
|
@ -55,3 +55,10 @@
|
|||
#define ULONG_MAX 0xffffffff /* max value for an unsigned long */
|
||||
#define LONG_MAX 0x7fffffff /* max value for a long */
|
||||
#define LONG_MIN (-0x7fffffff-1) /* min value for a long */
|
||||
|
||||
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
|
||||
#define UQUAD_MAX 0xffffffffffffffffLL /* max unsigned quad */
|
||||
#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */
|
||||
#define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue