Stick with unsigned long for _BSD_SIZE_T_ regardless of LP64/ILP32.
This commit is contained in:
parent
03e080a5af
commit
321742a838
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ansi.h,v 1.10 2006/10/04 13:52:00 tnozaki Exp $ */
|
||||
/* $NetBSD: ansi.h,v 1.11 2006/10/22 11:20:44 scw Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -47,18 +47,8 @@
|
|||
*/
|
||||
#define _BSD_CLOCK_T_ int /* clock() */
|
||||
#define _BSD_PTRDIFF_T_ long /* ptr1 - ptr2 */
|
||||
#ifndef __lint__
|
||||
#define _BSD_SIZE_T_ long unsigned int /* sizeof() */
|
||||
#define _BSD_SSIZE_T_ long int /* byte count or error */
|
||||
#else
|
||||
#ifndef _LP64
|
||||
#define _BSD_SIZE_T_ unsigned int /* sizeof() */
|
||||
#define _BSD_SSIZE_T_ int /* byte count or error */
|
||||
#else
|
||||
#define _BSD_SIZE_T_ unsigned long /* sizeof() */
|
||||
#define _BSD_SSIZE_T_ long /* byte count or error */
|
||||
#endif
|
||||
#endif
|
||||
#define _BSD_TIME_T_ int /* time() */
|
||||
#ifndef __lint__
|
||||
#define _BSD_VA_LIST_ __builtin_va_list /* GCC built-in type */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: targparam.h,v 1.2 2003/05/29 18:12:16 christos Exp $ */
|
||||
/* $NetBSD: targparam.h,v 1.3 2006/10/22 11:20:44 scw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Jochen Pohl
|
||||
|
@ -46,13 +46,8 @@
|
|||
* or the value of sizeof is of type unsigned long. Note this MUST be
|
||||
* kept in sync with the compiler!
|
||||
*/
|
||||
#ifndef _LP64
|
||||
#define PTRDIFF_IS_LONG 0
|
||||
#define SIZEOF_IS_ULONG 0
|
||||
#else
|
||||
#define PTRDIFF_IS_LONG 1
|
||||
#define SIZEOF_IS_ULONG 1
|
||||
#endif
|
||||
#define INTPTR_IS_LONG 1
|
||||
|
||||
#define FLOAT_SIZE (4 * CHAR_BIT)
|
||||
|
|
Loading…
Reference in New Issue