mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
do not define __offsetof twice
This commit is contained in:
@ -21,8 +21,10 @@ const (
|
||||
#endif
|
||||
|
||||
// for __offset_of
|
||||
#ifndef __offsetof
|
||||
#define __offsetof(s,memb) \\
|
||||
((size_t)((char *)&((s *)0)->memb - (char *)0))
|
||||
#endif
|
||||
|
||||
#define OPTION_CAST(x) (x)
|
||||
'
|
||||
|
Reference in New Issue
Block a user