From a2f3d447660f9e4da8ec1aae37ed23bb6716eb89 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 1 Dec 2000 22:15:56 +0000 Subject: Make #error instead of #warn that it is going away on jan 1st. --- include/struct.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'include') diff --git a/include/struct.h b/include/struct.h index c32ec28..4c47a37 100644 --- a/include/struct.h +++ b/include/struct.h @@ -39,19 +39,7 @@ #define _STRUCT_H_ #if __GNUC__ -#warning "this file includes which is deprecated, use instead" +#error "this file includes which is deprecated, use instead" #endif -/* Offset of the field in the structure. */ -#define fldoff(name, field) \ - ((int)&(((struct name *)0)->field)) - -/* Size of the field in the structure. */ -#define fldsiz(name, field) \ - (sizeof(((struct name *)0)->field)) - -/* Address of the structure from a field. */ -#define strbase(name, addr, field) \ - ((struct name *)((char *)(addr) - fldoff(name, field))) - #endif /* !_STRUCT_H_ */ -- cgit v1.1