summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-07-08 16:43:35 +0000
committermike <mike@FreeBSD.org>2002-07-08 16:43:35 +0000
commitebfda4c0dd6bcd6c81042231fbc8f0a68f0cc7cf (patch)
treefb88a472d1c60c155a3067ac65de70a1aaf477b4 /sys/i386
parent2363974e0c8427799636701e0abdf9f903a37253 (diff)
downloadFreeBSD-src-ebfda4c0dd6bcd6c81042231fbc8f0a68f0cc7cf.zip
FreeBSD-src-ebfda4c0dd6bcd6c81042231fbc8f0a68f0cc7cf.tar.gz
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.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/include/ansi.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/i386/include/ansi.h b/sys/i386/include/ansi.h
index d81551d..2573c53 100644
--- a/sys/i386/include/ansi.h
+++ b/sys/i386/include/ansi.h
@@ -113,11 +113,6 @@ typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#define _BSD_CLOCKS_PER_SEC_ 128
/*
- * We define this here since both <stddef.h> and <sys/types.h> needs it.
- */
-#define __offsetof(type, field) ((size_t)(&((type *)0)->field))
-
-/*
* XXX this paragraph is very out of date.
* Typedefs for especially magic types. #define's wouldn't work in the
* __GNUC__ case, since __attribute__(()) only works in certain contexts.
OpenPOWER on IntegriCloud