libmicrohttpd2

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

commit e3e361f01276c2d76c684dff9a8d708db618e01b
parent 0fe26531aeb3c5900392eaf5adc3c03ce6f9fe7b
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Tue, 11 Aug 2026 12:24:51 +0200

mhd_sys_options.h: reordered some macros

Diffstat:
Msrc/incl_priv/mhd_sys_options.h | 27++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/src/incl_priv/mhd_sys_options.h b/src/incl_priv/mhd_sys_options.h @@ -540,6 +540,22 @@ # endif #endif +#ifndef _MSC_FULL_VER +# define mhd_DATA_TRUNCATION_RUNTIME_CHECK_DISABLE /* empty */ +# define mhd_DATA_TRUNCATION_RUNTIME_CHECK_RESTORE /* empty */ +#else /* _MSC_FULL_VER */ +# define mhd_DATA_TRUNCATION_RUNTIME_CHECK_DISABLE \ + __pragma(runtime_checks("c", off)) +# define mhd_DATA_TRUNCATION_RUNTIME_CHECK_RESTORE \ + __pragma(runtime_checks("c", restore)) +#endif /* _MSC_FULL_VER */ + + +/* *************************************************************** * + * Additional automatic configuration macros * + * *************************************************************** */ + + /* Ensure that exactly one of the two macros is always defined */ #if defined(NDEBUG) && defined(_DEBUG) # error Both _DEBUG and NDEBUG are defined @@ -615,17 +631,6 @@ #endif /* ! (MHD_ASAN_ACTIVE && HAVE_SANITIZER_ASAN_INTERFACE_H && (FUNC_ATTR_PTRCOMPARE_WORKS || FUNC_ATTR_NOSANITIZE_WORKS)) */ -#ifndef _MSC_FULL_VER -# define mhd_DATA_TRUNCATION_RUNTIME_CHECK_DISABLE /* empty */ -# define mhd_DATA_TRUNCATION_RUNTIME_CHECK_RESTORE /* empty */ -#else /* _MSC_FULL_VER */ -# define mhd_DATA_TRUNCATION_RUNTIME_CHECK_DISABLE \ - __pragma(runtime_checks("c", off)) -# define mhd_DATA_TRUNCATION_RUNTIME_CHECK_RESTORE \ - __pragma(runtime_checks("c", restore)) -#endif /* _MSC_FULL_VER */ - - #if !defined(mhd_W32_NATIVE) /** * Indicate that suppression of SIGPIPE is required for some network