[PATCH v11 1/6] cmdline: include stddef.h for MSVC compatibility
Bruce Richardson
bruce.richardson at intel.com
Wed Apr 15 12:07:11 CEST 2026
On Fri, Apr 10, 2026 at 10:15:39PM +0200, Lukas Sismis wrote:
> Include <stddef.h> at the top of cmdline_parse.h before the
> fallback offsetof macro definition. This improves MSVC build
> compatibility by ensuring the standard offsetof is available
> before the fallback definition, avoiding macro redefinition
> warnings when building with /WX (warnings as errors).
>
> The standard header provides offsetof on all platforms, and
> including it first ensures the fallback is only used when truly
> needed.
>
> Signed-off-by: Lukas Sismis <sismis at dyna-nic.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list