Merge pull request #65 from smoofra/gperf

build compat fix for mac os: define offsetof if it's missing
1.21
Bryan Hundven 8 years ago
commit f1158a215b

@ -7,6 +7,15 @@
%pic
%struct-type
%{
# ifndef offsetof
# include <stddef.h>
# ifndef offsetof
# define offsetof(st, m) ((size_t)(&((st *)0)->m))
# endif
# endif
%}
struct kconf_id;
static struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);

Loading…
Cancel
Save