From ebfda4c0dd6bcd6c81042231fbc8f0a68f0cc7cf Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 8 Jul 2002 16:43:35 +0000 Subject: Move __offsetof() macro from to . It's hardly MD, since all our platforms share the same macro. It's not really compiler dependent either, but this helps in reducing to only type definitions. --- sys/alpha/include/ansi.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sys/alpha/include/ansi.h') diff --git a/sys/alpha/include/ansi.h b/sys/alpha/include/ansi.h index 84591b9..c653384 100644 --- a/sys/alpha/include/ansi.h +++ b/sys/alpha/include/ansi.h @@ -119,11 +119,6 @@ typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/ #define _BSD_CLOCKS_PER_SEC_ 100 /* - * We define this here since both and 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. */ -- cgit v1.1