X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..b4c24cb9d3df001f2892dc4ed451bc769ff28a9f:/bsd/ppc/types.h diff --git a/bsd/ppc/types.h b/bsd/ppc/types.h index 538ded1de..f370e9bf1 100644 --- a/bsd/ppc/types.h +++ b/bsd/ppc/types.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -77,9 +77,10 @@ typedef unsigned long long u_int64_t; typedef int32_t register_t; +typedef long int intptr_t; +typedef unsigned long int uintptr_t; -typedef int *intptr_t; -typedef unsigned long *uintptr_t; +#define __offsetof(type, field) ((size_t)(&((type *)0)->field)) #endif /* __ASSEMBLER__ */ #endif /* _MACHTYPES_H_ */