changed offsetof(), so it will not generate a warning on 2-4 machines
This commit is contained in:
parent
9da96274ae
commit
68f19d7335
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@
|
|||
|
||||
#define NULL ((void *)0)
|
||||
|
||||
#define offsetof(type, ident) ((size_t) &(((type *)0)->ident))
|
||||
#define offsetof(type, ident) ((size_t) (unsigned long) (char *)(&((type *)0)->ident))
|
||||
|
||||
|
||||
#if _EM_PSIZE == _EM_WSIZE
|
||||
typedef int ptrdiff_t; /* result of substracting two pointers */
|
||||
|
|
Loading…
Reference in a new issue