Re: [Qemu-devel] [PATCH] osdep: Remove local definition of macro offsetof

2012-03-05 Thread Stefan Weil
Am 05.03.2012 14:49, schrieb Peter Maydell: On 5 March 2012 13:23, Andreas Färber wrote: Am 05.03.2012 07:22, schrieb Stefan Weil: The macro offsetof is defined in stddef.h. It is conforming to the standards C89, C99 and POSIX.1-2001 (see man page), so it is a sufficiently old standard. There

Re: [Qemu-devel] [PATCH] osdep: Remove local definition of macro offsetof

2012-03-05 Thread Peter Maydell
On 5 March 2012 13:23, Andreas Färber wrote: > Am 05.03.2012 07:22, schrieb Stefan Weil: >> The macro offsetof is defined in stddef.h. It is conforming to >> the standards C89, C99 and POSIX.1-2001 (see man page), so it >> is a sufficiently old standard. >> >> Therefore chances are very high that

Re: [Qemu-devel] [PATCH] osdep: Remove local definition of macro offsetof

2012-03-05 Thread Andreas Färber
Am 05.03.2012 07:22, schrieb Stefan Weil: > The macro offsetof is defined in stddef.h. It is conforming to > the standards C89, C99 and POSIX.1-2001 (see man page), so it > is a sufficiently old standard. > > Therefore chances are very high that QEMU never needs a local > definition of this macro.

[Qemu-devel] [PATCH] osdep: Remove local definition of macro offsetof

2012-03-04 Thread Stefan Weil
The macro offsetof is defined in stddef.h. It is conforming to the standards C89, C99 and POSIX.1-2001 (see man page), so it is a sufficiently old standard. Therefore chances are very high that QEMU never needs a local definition of this macro. osdep.h already includes stddef.h, so this patch sim