mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-30 21:34:21 +08:00
crt: _HUGE for UCRT
Signed-off-by: Jonathan Yong <10walls@gmail.com>
This commit is contained in:
parent
69e13b5806
commit
5a4f14f699
@ -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 \
|
||||
|
2
mingw-w64-crt/math/_huge.c
Normal file
2
mingw-w64-crt/math/_huge.c
Normal file
@ -0,0 +1,2 @@
|
||||
/* For UCRT, positive infinity */
|
||||
double const _HUGE = __builtin_huge_val();
|
@ -143,8 +143,13 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef _HUGE
|
||||
#ifdef _UCRT
|
||||
extern double const _HUGE;
|
||||
#define _HUGE _HUGE
|
||||
#else
|
||||
extern double * __MINGW_IMP_SYMBOL(_HUGE);
|
||||
#define _HUGE (* __MINGW_IMP_SYMBOL(_HUGE))
|
||||
#endif /* _UCRT */
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
Loading…
Reference in New Issue
Block a user