diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-12-01 22:15:56 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-12-01 22:15:56 +0000 |
| commit | 82e078d8f984da15c7ff7b1671e0f4dcf69f40df (patch) | |
| tree | 52255f50eff426d968f559d5d969ef380e704be4 /include | |
| parent | 8fd61eaf91483498e6011f233efc2cf1a492ba23 (diff) | |
Notes
Diffstat (limited to 'include')
| -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 c32ec28e64e0..4c47a37971c3 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_ */ |
