diff options
author | phk <phk@FreeBSD.org> | 2000-12-01 22:15:56 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-12-01 22:15:56 +0000 |
commit | a2f3d447660f9e4da8ec1aae37ed23bb6716eb89 (patch) | |
tree | 412d274c3e0058bcd9c83ff639a1de6f690859fd | |
parent | e957a4f81c06d91bc2df305a5d8db0a320af34a8 (diff) | |
download | FreeBSD-src-a2f3d447660f9e4da8ec1aae37ed23bb6716eb89.zip FreeBSD-src-a2f3d447660f9e4da8ec1aae37ed23bb6716eb89.tar.gz |
Make <struct.h> #error instead of #warn that it is going away on jan 1st.
-rw-r--r-- | include/struct.h | 14 |
1 files changed, 1 insertions, 13 deletions
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 <struct.h> which is deprecated, use <stddef.h> instead" +#error "this file includes <struct.h> which is deprecated, use <stddef.h> 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_ */ |