commit 90d448e943c77fd62f4d4b32c7ae09e164576f11 parent c2330a02d8aa4adba302ddc97fd6eb84c317acf7 Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev> Date: Tue, 7 Oct 2025 21:20:43 +0200 mhd_sys_options.h: more portability tricks Diffstat:
| M | src/incl_priv/mhd_sys_options.h | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/incl_priv/mhd_sys_options.h b/src/incl_priv/mhd_sys_options.h @@ -632,6 +632,21 @@ # undef _Atomic # define _Atomic /* empty */ # undef MHD_HAVE_C_CONSTEXPR +# if defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 202311) +# ifndef HAVE_STDBOOL_H +# define bool _Bool +# define true 1 +# define false 0 +# endif +# elif defined __has_include +# if __has_include (<stdbool.h>) +# define HAVE_STDBOOL_H 1 +# endif +# endif +# if ((__STDC_VERSION__ + 0) >= 202311) +# define alignof _Alignof +# endif +# define __auto_type auto #endif /* Avoid interference with third-party headers */