Hi, Attached patch OK?
From c9bef0201c412ee20531fdd777978644e0eef76c Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10wa...@gmail.com> Date: Sat, 15 May 2021 12:56:51 +0000 Subject: [PATCH] crt: _HUGE for UCRT
Signed-off-by: Jonathan Yong <10wa...@gmail.com> --- mingw-w64-crt/Makefile.am | 1 + mingw-w64-crt/math/_huge.c | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 mingw-w64-crt/math/_huge.c diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index 1f48b72e..47db28bf 100644 --- a/mingw-w64-crt/Makefile.am +++ b/mingw-w64-crt/Makefile.am @@ -229,6 +229,7 @@ src_msvcrt=\ src_ucrtbase=\ crt/ucrtbase_compat.c \ + math/_huge.c \ stdio/ucrt_fprintf.c \ stdio/ucrt_fscanf.c \ stdio/ucrt_fwprintf.c \ diff --git a/mingw-w64-crt/math/_huge.c b/mingw-w64-crt/math/_huge.c new file mode 100644 index 00000000..753f7122 --- /dev/null +++ b/mingw-w64-crt/math/_huge.c @@ -0,0 +1,7 @@ +/* alias for UCRT, positive infinity */ +#define _HUGE +#include <math.h> +#undef _HUGE + +double _HUGE = __builtin_huge_val(); +double *__MINGW_IMP_SYMBOL(_HUGE) = &_HUGE; -- 2.31.1
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public