According to C89, <stddef.h> shall define offsetof macro.
* defs.h: Include <stddef.h> unconditionally.
[!offsetof]: Remove.
#include <stdint.h>
#include <inttypes.h>
#include <sys/types.h>
-#ifdef STDC_HEADERS
-# include <stddef.h>
-#endif
+#include <stddef.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
extern char *stpcpy(char *dst, const char *src);
#endif
-#ifndef offsetof
-# define offsetof(type, member) \
- (((char *) &(((type *) NULL)->member)) - ((char *) (type *) NULL))
-#endif
-
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
/* macros */