aboutsummaryrefslogtreecommitdiff
path: root/sys/ia64
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-07-08 16:43:35 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-07-08 16:43:35 +0000
commitba5fe51088001e442e0f52c609da45b43f314b48 (patch)
treefb88a472d1c60c155a3067ac65de70a1aaf477b4 /sys/ia64
parentf71e6a52437d624d52b16d317e60bfb99aa5cbaa (diff)
downloadsrc-ba5fe51088001e442e0f52c609da45b43f314b48.tar.gz
src-ba5fe51088001e442e0f52c609da45b43f314b48.zip
Move __offsetof() macro from <machine/ansi.h> to <sys/cdefs.h>. It's
hardly MD, since all our platforms share the same macro. It's not really compiler dependent either, but this helps in reducing <machine/ansi.h> to only type definitions.
Notes
Notes: svn path=/head/; revision=99594
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/ansi.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/ia64/include/ansi.h b/sys/ia64/include/ansi.h
index 9e4d84b5dfe3..188fbef03f96 100644
--- a/sys/ia64/include/ansi.h
+++ b/sys/ia64/include/ansi.h
@@ -114,11 +114,6 @@ typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#define _BSD_CLOCKS_PER_SEC_ 100
/*
- * We define this here since both <stddef.h> and <sys/types.h> needs it.
- */
-#define __offsetof(type, field) ((size_t)(&((type *)0)->field))
-
-/*
* Internal names for basic integral types. Omit the typedef if
* not possible for a machine/compiler combination.
*/