]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/ppc/types.h
xnu-344.12.2.tar.gz
[apple/xnu.git] / bsd / ppc / types.h
index 538ded1de919963ded249bcd41ed5cfd55592653..f370e9bf1b0caa88f3ebee370c8de64c397a2513 100644 (file)
@@ -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_ */