mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
Merge pull request #65 from smoofra/gperf
build compat fix for mac os: define offsetof if it's missing
This commit is contained in:
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…
x
Reference in New Issue
Block a user