libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 6587b80479098c9ec6c833b6f1b3da2d241ffae7
parent 3b350aa84b64c048228d5102522dca864890055a
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Fri, 29 Aug 2025 18:50:14 +0200

sys_offsetof.h: narrowed includes scope

Diffstat:
Msrc/mhd2/sys_offsetof.h | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/mhd2/sys_offsetof.h b/src/mhd2/sys_offsetof.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later OR (GPL-2.0-or-later WITH eCos-exception-2.0) */ /* This file is part of GNU libmicrohttpd. - Copyright (C) 2024 Evgeny Grin (Karlson2k) + Copyright (C) 2024-2025 Evgeny Grin (Karlson2k) GNU libmicrohttpd is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -47,13 +47,12 @@ #include "mhd_sys_options.h" -#include "sys_base_types.h" - #if defined(HAVE_STDDEF_H) -# include <stddef.h> /* it should be already included, actually */ +# include <stddef.h> #endif /* HAVE_STDDEF_H */ #ifndef offsetof +# include "sys_sizet_type.h" # define offsetof(strct, membr) \ ((size_t) (((char*) &(((strct*) 0)->membr)) - ((char*) ((strct*) 0)))) #endif /* ! offsetof */