mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
Move offsetof to osdep.h, remove local defintions.
With this container_of can actually be used without causing build errors. Reformat container_of. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5234 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
2acf5af04d
commit
ac509d8887
5 changed files with 7 additions and 18 deletions
|
@ -549,10 +549,6 @@ int do_sigaction(int sig, const struct target_sigaction *act,
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifndef offsetof
|
||||
#define offsetof(type, field) ((size_t) &((type *)0)->field)
|
||||
#endif
|
||||
|
||||
static inline int copy_siginfo_to_user(target_siginfo_t *tinfo,
|
||||
const target_siginfo_t *info)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue