|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] Use standard header for offsetof |
Date: | Tue, 03 Jun 2008 16:24:52 -0500 |
User-agent: | Thunderbird 2.0.0.14 (X11/20080501) |
Stefan Weil wrote:
Anthony Liguori schrieb:I don't understand why you're adding #include <stdef.h> to files that do not define offsetof. What's the rationale for that?Regards, Anthony LiguoriThere were several possible ways to replace the defines for offsetof. After removing the defines, I could 1) include stddef.h at the places where offsetof was defined formerly
This seems like the most logically thing to do to me. Otherwise, you're unnecessarily increasing the number of #include's in C files.
Regards, Anthony Liguori
[Prev in Thread] | Current Thread | [Next in Thread] |